I'm missing a TT config options to filter all GETs.  Don't filter
MACRO, INCLUDE, or PROCESS.  Just GET.  Examples:

 my $template = Template->new({ 
        FILTER_GET => 'html',
    });


[% my_function(myvar) %]  Filter my_function but not myvar

[% myvar %]               Filters myvar

[% myvar | myfilter %]    Filter myvar through myfilter instead of html



In HTML context, almost ALL retrieved data should be html filterd.
Making the filtering default would help a lot.


Maby it's hard to implement?  If this make sense I could look at
making a patch next time I need this.

-- 
/ Jonas  -  http://jonas.liljegren.org/myself/en/index.html


Reply via email to