blib/lib/Mojolicious/Plugin/AutoRoute/Util.pm | |||
---|---|---|---|
Criterion | Covered | Total | % |
statement | 12 | 12 | 100.0 |
branch | n/a | ||
condition | n/a | ||
subroutine | 5 | 5 | 100.0 |
pod | 0 | 1 | 0.0 |
total | 17 | 18 | 94.4 |
line | stmt | bran | cond | sub | pod | time | code |
---|---|---|---|---|---|---|---|
1 | package Mojolicious::Plugin::AutoRoute::Util; | ||||||
2 | |||||||
3 | 1 | 1 | 339225 | use strict; | |||
1 | 1 | ||||||
1 | 27 | ||||||
4 | 1 | 1 | 4 | use warnings; | |||
1 | 1 | ||||||
1 | 26 | ||||||
5 | 1 | 1 | 4 | use base 'Exporter'; | |||
1 | 4 | ||||||
1 | 155 | ||||||
6 | |||||||
7 | our @EXPORT_OK = ('template'); | ||||||
8 | |||||||
9 | sub template { | ||||||
10 | 3 | 3 | 0 | 142 | my $template = shift; | ||
11 | |||||||
12 | 3 | 3 | 13 | return sub { shift->render($template, 'mojo.maybe' => 1) }; | |||
3 | 25730 | ||||||
13 | } | ||||||
14 | |||||||
15 | 1; | ||||||
16 | |||||||
17 | =head1 Mojolicious::Plugin::AutoRoute::Util | ||||||
18 | |||||||
19 | template function. | ||||||
20 |