Fw: [SMARTY] Compiler tag with modifiers

"Cal Henderson" <[email protected]>
Newsgroups gmane.comp.php.smarty.general
Message-ID <087d01c5a389$c8967dc0$0100000a@bodybetweenlx>
Cal Henderson <[email protected]> wrote:
: Ivo Jansch <[email protected]> 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

-- 
Smarty General Mailing List (http://smarty.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.