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
[EMAIL PROTECTED]
http://lists.template-toolkit.org/mailman/listinfo/templates

Reply via email to