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)