Beefy Boxes and Bandwidth Generously Provided by pair Networks
XP is just a number
 
PerlMonks  

Template::AutoFilter

by mithaldu (Monk)
on Jan 02, 2011 at 16:57 UTC ( [id://880085]=note: print w/replies, xml ) Need Help??


in reply to Default filter in TT

I just released Template-AutoFilter to CPAN, which means it'll be available for installation in a few hours. It solves the problem cleanly by sub-classing Template::Toolkit with a modified parser that adds filter instructions to unfiltered tokens and supplying a pass-through filter for exclusion.

I've only done very restricted testing on it, so please do poke me if it breaks things for you, but aside from that it should not be very dangerous to use as long as you remember that it tries to filter ALL TT instructions.

If you're the impatient type, you can get the code from Github as well. :)

Replies are listed 'Best First'.
Re: Template::AutoFilter
by morgon (Priest) on Jan 07, 2011 at 16:32 UTC
    Thanks for implementing this feature.

    However at the moment I cannot figure out how to use it with CGI::Application::Plugin::TT.

    Is that possible?

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://880085]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others having a coffee break in the Monastery: (3)
As of 2026-04-16 23:44 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?
    hippoepoptai's answer Re: how do I set a cookie and redirect was blessed by hippo!
    erzuuliAnonymous Monks are no longer allowed to use Super Search, due to an excessive use of this resource by robots.