line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package MojoX::Renderer::HTC; |
2
|
|
|
|
|
|
|
|
3
|
1
|
|
|
1
|
|
15648
|
use warnings; |
|
1
|
|
|
|
|
1
|
|
|
1
|
|
|
|
|
40
|
|
4
|
1
|
|
|
1
|
|
4
|
use strict; |
|
1
|
|
|
|
|
1
|
|
|
1
|
|
|
|
|
29
|
|
5
|
|
|
|
|
|
|
|
6
|
1
|
|
|
1
|
|
832
|
use HTML::Template::Compiled; |
|
1
|
|
|
|
|
52704
|
|
|
1
|
|
|
|
|
7
|
|
7
|
|
|
|
|
|
|
|
8
|
|
|
|
|
|
|
# ABSTRACT: HTML::Template::Compiled renderer for Mojo |
9
|
|
|
|
|
|
|
|
10
|
|
|
|
|
|
|
our $VERSION = '0.02'; |
11
|
|
|
|
|
|
|
|
12
|
|
|
|
|
|
|
|
13
|
|
|
|
|
|
|
sub build { |
14
|
0
|
|
|
0
|
1
|
|
my ($self, %args) = @_; |
15
|
|
|
|
|
|
|
|
16
|
|
|
|
|
|
|
return sub { |
17
|
0
|
|
|
0
|
|
|
my ($mojo, $ctx, $output) = @_; |
18
|
|
|
|
|
|
|
|
19
|
0
|
|
|
|
|
|
my $stash = $ctx->stash; |
20
|
0
|
|
|
|
|
|
my $template = HTML::Template::Compiled->new( |
21
|
|
|
|
|
|
|
%args, |
22
|
|
|
|
|
|
|
filename => $stash->{template}, |
23
|
|
|
|
|
|
|
); |
24
|
|
|
|
|
|
|
|
25
|
0
|
|
|
|
|
|
$template->param( |
26
|
|
|
|
|
|
|
%$stash, |
27
|
|
|
|
|
|
|
); |
28
|
|
|
|
|
|
|
|
29
|
0
|
|
|
|
|
|
$$output = $template->output; |
30
|
|
|
|
|
|
|
} |
31
|
0
|
|
|
|
|
|
} |
32
|
|
|
|
|
|
|
|
33
|
|
|
|
|
|
|
1; # End of MojoX::Renderer::HTC |
34
|
|
|
|
|
|
|
|
35
|
|
|
|
|
|
|
__END__ |