HTML-Template
view release on metacpan or search on metacpan
lib/HTML/Template.pm view on Meta::CPAN
=item * __last__
Value that is true for the last iteration of the loop and false every other time.
=item * __inner__
Value that is true for the every iteration of the loop except for the first and last.
=item * __outer__
Value that is true for the first and last iterations of the loop.
=item * __odd__
Value that is true for the every odd iteration of the loop.
=item * __even__
Value that is true for the every even iteration of the loop.
=item * __counter__
scripts/time_trial.pl view on Meta::CPAN
},
# 'simple cache, no_includes' => { cache => 1, no_includes => 1},
# 'blind cache' => { blind_cache => 1},
);
# number of times over each template
my $n = 100;
#open(OUT, ">test.out");
foreach my $template (keys %templates) {
print "\nTESTING : $template : $n iterations\n\n";
foreach my $option (keys %options) {
my $start_time = (times)[0];
for (my $x = 0 ; $x < $n ; $x++) {
my $template = HTML::Template->new(
filename => $templates{$template}->[0],
%{$options{$option}}
);
foreach my $name (keys %{$templates{$template}->[1]}) {
$template->param($name => $templates{$template}->[1]->{$name});
( run in 0.600 second using v1.01-cache-2.11-cpan-71847e10f99 )