Re: [SMARTY-DEV] default modifiers
| From: | Andrei Zmievski | Date: | Wed, 17 Jul 2002 14:43:36 +0000 |
| Subject: | Re: [SMARTY-DEV] default modifiers | ||
| References: | 1 | Groups: | php.smarty.dev |
| Request: | Send a blank email to php-smarty-dev+get-205@lists.php.net to get a copy of this message | ||
On Wed, 17 Jul 2002, Monte Ohrt wrote:
> Also, default modifiers preceed any modifiers exlicitly given. So in
> your template you have {$var|upper}, and your default modifier is
> |escape:"htmlall", then your var will end up like
> {$var|escape:"htmlall"|upper}
Yes, that's expected.
> The last issue is how to handle vars you don't want affected by default
> modifiers. Should there be a way to disable default modifiers for a
> certain var, or do you just explicitly string more modifiers on to
> "undo" them? example, {$var|unescape} turns into
> {$var|escape:"htmlall"|unescape}
Eh, I wouldn't want to provide "reverse" modifiers for everything. Gotta
be another way around it. Or tough, you wanted default modifiers, you
got them applied to everything.
-Andrei http://www.gravitonic.com/
"Remember, high-tech means breaks down next week, while cutting edge means
breaks down this afternoon." -- Bruce Sterling