View | Details | Raw Unified | Return to bug 20975
Collapse All | Expand All

(-)a/benchmark_AutoEscaping.pl (-5 / +2 lines)
Lines 5-13 my $tt = Template->new( Link Here
5
    {
5
    {
6
        ABSOLUTE    => 1,
6
        ABSOLUTE    => 1,
7
        PLUGIN_BASE => 'Koha::Template::Plugin',
7
        PLUGIN_BASE => 'Koha::Template::Plugin',
8
        STASH       => Template::Stash::AutoEscaping->new(
8
        STASH       => Template::Stash::AutoEscaping->new,
9
            { ignore_escape => [qw(l)] }
10
        ),
11
    }
9
    }
12
);
10
);
13
11
Lines 34-40 __DATA__ Link Here
34
[% pouet %]
32
[% pouet %]
35
<div style="display:none;">
33
<div style="display:none;">
36
[% FOR l IN loop %]
34
[% FOR l IN loop %]
37
    [% l.foo %] [% l.bar %]
35
    [% l.foo.raw %] [% l.bar.raw %]
38
    <br/>
36
    <br/>
39
[% END %]
37
[% END %]
40
</div>
38
</div>
41
- 

Return to bug 20975