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.<h1>[% hubba FILTER html %]</h1>
Many thanks!
In reply to Default filter in TT by morgon
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |