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