Fw: [SMARTY] Compiler tag with modifiers
| From: | Cal Henderson | Date: | Thu, 18 Aug 2005 00:14:16 +0000 |
| Subject: | Fw: [SMARTY] Compiler tag with modifiers | ||
| Groups: | php.smarty.general | ||
| Request: | Send a blank email to php-smarty-general+get-12974@lists.php.net to get a copy of this message | ||
Cal Henderson <cal@iamcal.com> wrote:
: Ivo Jansch <ivo@ibuildings.nl> wrote:
:: But this doesn't work for some reason. The compiler chokes on the
:: '$variable|nl2br' part, where in regular non-compiler tags, this
:: works. How can I make it work?
:
: use a capture and then output it?
:
: {capture assign='foo'}{parse $variable}{/capture}{$foo|nl2br}
:
: or for pre-modifying,
:
: {assign var='variable' value=$variable|nl2br}
:
:
: how is your 'parse' compiler different from eval?
:
: http://smarty.php.net/manual/en/language.function.eval.php
:
:
: --cal