[Templates] Assigning chained filter output to variable?
[prev]
[thread]
[next]
[Date index for 2004/06/04]
A few months back there was a discussion on the list about
assigning the output of a filter to a variable. I'd like to
know how, if possible, to assign the output of chained
filters to a variable; everything I've tried has ended up
with parse errors.
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?
Thanks.
Jesse Sheidlower
_______________________________________________
templates mailing list
templates@xxxxxxxxxxxxxxxx.xxx
http://lists.template-toolkit.org/mailman/listinfo/templates
 |
[Templates] Assigning chained filter output to variable?
Jesse Sheidlower 20:23 on 04 Jun 2004
|