Compiler tag with modifiers

From: Date: Wed, 17 Aug 2005 08:12:31 +0000
Subject: Compiler tag with modifiers
Groups: php.smarty.general 
Request: Send a blank email to php-smarty-general+get-12969@lists.php.net to get a copy of this message
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Hi, I've created a compiler tag called {parse} that I can use like this: {parse $variable} The $variable is evaluated as a smarty template (using a string resource and a compiler tag). Now, I would like to apply modifiers, both to the result, or to the variable before it gets parsed. For example: {parse $variable|nl2br} 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? Greetings, Ivo - -- Ivo Jansch <ivo@ibuildings.nl> ibuildings.nl BV - information technology http://www.ibuildings.nl -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.4 (MingW32) Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org iD8DBQFDAvFv95NUnGFZm9cRAl+UAKCYRU4uYRNC4xeKLO/mf2sOwO61BwCdE7P0 Ck5d+A2skMVMsEyQYS2Sx68= =OtC0 -----END PGP SIGNATURE-----

« previous php.smarty.general (#12969) next »