|go ahead... be a heretic|
Default filter in TTby morgon (Deacon)
|on Jan 01, 2011 at 18:28 UTC||Need Help??|
morgon has asked for the
wisdom of the Perl Monks concerning the following question:
I am using the template toolkit to produce html and xml.
When e.g. producing html I use filters to properly escape template-variables like this:
Now on my templates basically all variables would need to go through such a filter and I find it tedious to add the FILTER-directive to all variables, so I wonder if there is a way to configure TT in such a way that it applies a default-filter to all variables that do not explicitly set one.