Beefy Boxes and Bandwidth Generously Provided by pair Networks
The stupid question is the question not asked
 
PerlMonks  

Re: Default filter in TT

by mithaldu (Monk)
on Jan 01, 2011 at 21:20 UTC ( #880035=note: print w/ replies, xml ) Need Help??


in reply to Default filter in TT

Edit: Please do not use this and look at Template::AutoFilter for a much better solution instead!
(You can study this though if you want to see some pretty terrible monkey-patching.)



After some poking by tinita on the subject and looking at the horror that is Template::HTML i decided to implement a much more brutal, but more effective and way more straight-forward method of applying a user-defined filter to any unfiltered token, while still allowing exclusion of specific tokens.

As i implemented it just now, you won't find it on CPAN (yet). You can get the code here:

AutoFilter.pm

Please let me know if it breaks in some way for you and i'll attempt to get it fixed.


Comment on Re: Default filter in TT
Re^2: Default filter in TT
by morgon (Deacon) on Jan 02, 2011 at 21:33 UTC
    Many thanks for this, I will test it next week.

    For future feature requests I will try to poke you directly rather than going through tinita :-)

      I hope you meant you are going to use Template-AutoFilter. Also, if you hop on irc.perl.org you can poke me under Mithaldu/xsheep/sheepx most times for fastest fixing. ;)

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others browsing the Monastery: (12)
As of 2015-07-06 15:42 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (77 votes), past polls