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