Beefy Boxes and Bandwidth Generously Provided by pair Networks
go ahead... be a heretic
 
PerlMonks  

Re: How to test all TT2 tags are escaped.

by Rhandom (Curate)
on Oct 28, 2013 at 14:21 UTC ( #1059988=note: print w/ replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    use Template::Alloy;
    my $t = Template::Alloy->new(AUTO_FILTER=>"html");
    $t->process(\qq{[% foo %]\n}, {foo => "(&)"})'
    
    (&)
    
  2. or download this
    AUTO_FILTER
    
    ...
            [% f = "&"; g = f; g %]  prints &
            [% f = "&"; g = f; g | none %]  prints & (because g = f is a S
    +ET directive)
            [% f = "&"; g = GET f; g | none %]  prints & (because the 
    +actual GET directive was called)
    

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others having an uproarious good time at the Monastery: (6)
As of 2014-09-24 04:33 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    How do you remember the number of days in each month?











    Results (245 votes), past polls