Nik Clayton wrote:
>     [% msg | html | html_line_break | catch_all %]
> 
> Which should work, but doesn't strike me as being terribly elegant.

You can make that more elegant with a MACRO:

  [% MACRO message(m) GET m | html | html_line_break | catch_all %]

  [% message(msg) %]

Alternately, you could define a vmethod.

  [% msg.filtered %]

Cheers
A



_______________________________________________
templates mailing list
[email protected]
http://lists.template-toolkit.org/mailman/listinfo/templates

Reply via email to