| line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
|
1
|
|
|
|
|
|
|
package Kelp::Module::Template::Toolkit; |
|
2
|
1
|
|
|
1
|
|
30570
|
use Kelp::Base 'Kelp::Module::Template'; |
|
|
1
|
|
|
|
|
3
|
|
|
|
1
|
|
|
|
|
8
|
|
|
3
|
1
|
|
|
1
|
|
350412
|
use Template; |
|
|
1
|
|
|
|
|
840354
|
|
|
|
1
|
|
|
|
|
245
|
|
|
4
|
|
|
|
|
|
|
|
|
5
|
|
|
|
|
|
|
our $VERSION = 0.301; |
|
6
|
|
|
|
|
|
|
|
|
7
|
|
|
|
|
|
|
attr ext => 'tt'; |
|
8
|
|
|
|
|
|
|
|
|
9
|
|
|
|
|
|
|
sub build_engine { |
|
10
|
1
|
|
|
1
|
1
|
189
|
my ( $self, %args ) = @_; |
|
11
|
1
|
|
|
|
|
12
|
return Template->new( \%args ); |
|
12
|
|
|
|
|
|
|
} |
|
13
|
|
|
|
|
|
|
|
|
14
|
|
|
|
|
|
|
sub render { |
|
15
|
4
|
|
|
4
|
1
|
46632
|
my ( $self, $template, $vars, @rest ) = @_; |
|
16
|
4
|
|
|
|
|
7
|
my $output; |
|
17
|
4
|
50
|
|
|
|
22
|
$self->engine->process( $template, $vars, \$output, @rest ) |
|
18
|
|
|
|
|
|
|
or die $self->engine->error(); |
|
19
|
4
|
|
|
|
|
173067
|
return $output; |
|
20
|
|
|
|
|
|
|
} |
|
21
|
|
|
|
|
|
|
|
|
22
|
|
|
|
|
|
|
1; |
|
23
|
|
|
|
|
|
|
|
|
24
|
|
|
|
|
|
|
__END__ |