[SMARTY] Compiler tag with modifiers

Ivo Jansch <[email protected]>
Newsgroups gmane.comp.php.smarty.general
Message-ID <[email protected]>
-----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 <[email protected]>
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-----

-- 
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.