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