line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package Mojolicious::Plugin::XslateRenderer; |
2
|
|
|
|
|
|
|
|
3
|
3
|
|
|
3
|
|
4065
|
use strict; |
|
3
|
|
|
|
|
5
|
|
|
3
|
|
|
|
|
89
|
|
4
|
3
|
|
|
3
|
|
11
|
use warnings; |
|
3
|
|
|
|
|
5
|
|
|
3
|
|
|
|
|
101
|
|
5
|
3
|
|
|
3
|
|
12
|
use parent qw(Mojolicious::Plugin); |
|
3
|
|
|
|
|
4
|
|
|
3
|
|
|
|
|
21
|
|
6
|
|
|
|
|
|
|
|
7
|
3
|
|
|
3
|
|
1590
|
use MojoX::Renderer::Xslate; |
|
3
|
|
|
|
|
6
|
|
|
3
|
|
|
|
|
29
|
|
8
|
|
|
|
|
|
|
|
9
|
|
|
|
|
|
|
sub register { |
10
|
2
|
|
|
2
|
1
|
91
|
my ($self, $app, $args) = @_; |
11
|
|
|
|
|
|
|
|
12
|
2
|
|
50
|
|
|
9
|
$args ||= {}; |
13
|
|
|
|
|
|
|
|
14
|
2
|
|
|
|
|
10
|
my $xslate = MojoX::Renderer::Xslate->build(app => $app, %$args); |
15
|
2
|
|
|
|
|
7
|
$app->renderer->add_handler(tx => $xslate); |
16
|
|
|
|
|
|
|
} |
17
|
|
|
|
|
|
|
|
18
|
|
|
|
|
|
|
|
19
|
|
|
|
|
|
|
1; |
20
|
|
|
|
|
|
|
|
21
|
|
|
|
|
|
|
__END__ |