List Info

Thread: Unassign plugin updated




Unassign plugin updated
user name
2006-05-16 16:23:34
The unassign plugin is updated, now it can unassign also an
array item!
Unassign is good to mantain clean your templates.

The syntax is simple:
{unassign var=$foo}

For unassign an array item:
{unassign var=$foo.bar}

See and download at:
http://smart
y.incutio.com/?page=unassign

Byez!

-- 
Davide "Design" Muzzarelli
www . dav - muz . net
www. fraw . info - a PHP framework with Smarty

-- 
Smarty General Mailing List (http://smarty.php.net/)
To unsubscribe, visit: http://www.php.net/unsub
.php

Capitalize and accented characters
user name
2006-05-16 17:43:40
I am seeing an odd result of capitalize.

Basically, the letter after an accented character is
capitalized, as if it a
new word has started.
Ex:
The word typed is "gráfica", the capitalized
result returned by smarty is
"GráFica".

In some SW I wrote, I consider words to match the regexp
"[a-zà-ü]", but I
think capitalize is matching "[a-z]" only.

Appreciate any insights,
Osiris Pedroso
--
Optimizer Consulting
http://www.swoptimizer.com

Phone: 1.415.259.5760
-----Original Message-----
From: Davide Muzzarelli [mailto:regdav-muz.net] 
Sent: Tuesday, May 16, 2006 1:24 PM
To: smarty-generallists.php.net
Subject: [SMARTY] Unassign plugin updated

The unassign plugin is updated, now it can unassign also an
array item!
Unassign is good to mantain clean your templates.

The syntax is simple:
{unassign var=$foo}

For unassign an array item:
{unassign var=$foo.bar}

See and download at:
http://smart
y.incutio.com/?page=unassign

Byez!

-- 
Davide "Design" Muzzarelli
www . dav - muz . net
www. fraw . info - a PHP framework with Smarty

-- 
Smarty General Mailing List (http://smarty.php.net/)
To unsubscribe, visit: http://www.php.net/unsub
.php

-- 
Smarty General Mailing List (http://smarty.php.net/)
To unsubscribe, visit: http://www.php.net/unsub
.php

Capitalize and accented characters
user name
2006-05-18 23:24:22
On 16 May 2006, at 18:43, Osiris Pedroso wrote:

> In some SW I wrote, I consider words to match the
regexp "[a-zà- 
> ü]", but I
> think capitalize is matching "[a-z]" only.

It would be nicer to match something more general like
[\w], if only  
there was a lower-case-only equivalent! I wonder if the
unicode  
patterns would work even now? For example, [\p] should
match all  
lower case letters. Or perhaps you could convert the string
to  
unicode before matching on it? Would be slower, but should
be much  
more reliable.

Marcus
-- 
Marcus Bointon
Synchromedia Limited: Putting you in the picture
marcussynchromedia.co.uk | http://www.synchromedia
.co.uk

-- 
Smarty General Mailing List (http://smarty.php.net/)
To unsubscribe, visit: http://www.php.net/unsub
.php

[1-3]

about | contact  Other archives ( Real Estate discussion Medical topics )