line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
2
|
|
|
2
|
|
2265
|
use strict; |
|
2
|
|
|
|
|
4
|
|
|
2
|
|
|
|
|
84
|
|
2
|
2
|
|
|
2
|
|
12
|
use warnings; |
|
2
|
|
|
|
|
3
|
|
|
2
|
|
|
|
|
118
|
|
3
|
|
|
|
|
|
|
package MojoX::Renderer::Alloy::TT; |
4
|
|
|
|
|
|
|
BEGIN { |
5
|
2
|
|
|
2
|
|
61
|
$MojoX::Renderer::Alloy::TT::AUTHORITY = 'cpan:AJGB'; |
6
|
|
|
|
|
|
|
} |
7
|
|
|
|
|
|
|
{ |
8
|
|
|
|
|
|
|
$MojoX::Renderer::Alloy::TT::VERSION = '1.121150'; |
9
|
|
|
|
|
|
|
} |
10
|
|
|
|
|
|
|
#ABSTRACT: Template::Alloy's Template-Toolkit renderer |
11
|
|
|
|
|
|
|
|
12
|
2
|
|
|
2
|
|
10
|
use base 'MojoX::Renderer::Alloy'; |
|
2
|
|
|
|
|
4
|
|
|
2
|
|
|
|
|
1201
|
|
13
|
|
|
|
|
|
|
|
14
|
2
|
|
|
2
|
|
2062
|
use Template::Alloy qw( TT ); |
|
2
|
|
|
|
|
59940
|
|
|
2
|
|
|
|
|
18
|
|
15
|
2
|
|
|
2
|
|
14818
|
use File::Spec (); |
|
2
|
|
|
|
|
6
|
|
|
2
|
|
|
|
|
287
|
|
16
|
|
|
|
|
|
|
|
17
|
|
|
|
|
|
|
__PACKAGE__->attr('alloy'); |
18
|
|
|
|
|
|
|
|
19
|
|
|
|
|
|
|
|
20
|
|
|
|
|
|
|
|
21
|
|
|
|
|
|
|
sub _render { |
22
|
22
|
|
|
22
|
|
58
|
my ($self, $r, $c, $output, $options) = @_; |
23
|
|
|
|
|
|
|
|
24
|
22
|
|
100
|
|
|
148
|
my $input = $self->_get_input( $r, $c, $options ) |
25
|
|
|
|
|
|
|
|| return; |
26
|
|
|
|
|
|
|
|
27
|
9
|
|
|
|
|
269
|
my $alloy = $self->alloy; |
28
|
|
|
|
|
|
|
|
29
|
|
|
|
|
|
|
$alloy->process( $input, |
30
|
|
|
|
|
|
|
$self->_template_vars( $c ), |
31
|
|
|
|
|
|
|
$output, |
32
|
|
|
|
|
|
|
{ binmode => ':utf8' }, |
33
|
9
|
100
|
|
|
|
115
|
) || do { |
34
|
2
|
|
|
|
|
30419
|
my $e = $alloy->error; |
35
|
2
|
|
|
|
|
15
|
chomp $e; |
36
|
2
|
|
|
|
|
234
|
$c->render_exception( $e ); |
37
|
|
|
|
|
|
|
}; |
38
|
|
|
|
|
|
|
} |
39
|
|
|
|
|
|
|
|
40
|
|
|
|
|
|
|
1; |
41
|
|
|
|
|
|
|
|
42
|
|
|
|
|
|
|
__END__ |