* Jesse Sheidlower <jester at panix.com> [2004/06/04 16:23]:
> I can do something like
>
> [% title = FILTER html; raw_title; END %]
>
> but suppose I'd like to take "raw_title" and chain it through:
>
> FILTER replace('<title>','<i>') | replace('</title>','</i>') | html
>
> but assign the whole lot to "title". Is there a way to do this
> by chaining, i.e. without having several separate filter statements?
What's wrong with several FILTERs?
$ tpage
[% raw_title = '<title>foo</title>' %]
[% title = raw_title | replace('<title>', '<i>') | replace('</title>', '</i>') |
html %]
raw_title = '[% raw_title %]'
title = '[% title %]'
raw_title = '<title>foo</title>'
title = '<i>foo</i>'
(darren)
--
It has long been an axiom of mine that the little things are
infinitely the most important.
-- Arthur Conan Coyle
pgpOdpyUayB4P.pgp
Description: PGP signature
