[Templates] auto filtering
Andy Wardley
abw@andywardley.com
Tue, 12 Nov 2002 11:39:28 +0000
David Dick wrote:
> Encountering a personal need for some sort of auto filter option in tt,
> so my html coder can put [% whatever %] and get the same results as if
> they had been good and put [% whatever | html %]. Anyone else
> interested in this sort of option?
If you want to filter each and every template in entirety, you can do
something like this with the PROCESS option:
my $tt = Template->new({
PROCESS => 'wrapper',
});
wrapper:
[% PROCESS $template FILTER html %]
HTH
A