line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package Mojolicious::Plugin::Prove::Base; |
2
|
|
|
|
|
|
|
$Mojolicious::Plugin::Prove::Base::VERSION = '0.11'; |
3
|
|
|
|
|
|
|
|
4
|
|
|
|
|
|
|
|
5
|
8
|
|
|
8
|
|
4273
|
use Mojo::Base 'Mojolicious::Plugin'; |
|
8
|
|
|
|
|
15
|
|
|
8
|
|
|
|
|
123
|
|
6
|
|
|
|
|
|
|
|
7
|
8
|
|
|
8
|
|
1467
|
use Cwd 'abs_path'; |
|
8
|
|
|
|
|
79
|
|
|
8
|
|
|
|
|
1844
|
|
8
|
|
|
|
|
|
|
|
9
|
|
|
|
|
|
|
has 'prefix'; |
10
|
|
|
|
|
|
|
has 'conf'; |
11
|
|
|
|
|
|
|
|
12
|
|
|
|
|
|
|
sub add_template_path { |
13
|
8
|
|
|
8
|
1
|
72
|
my ($self, $renderer, $class) = @_; |
14
|
|
|
|
|
|
|
|
15
|
8
|
|
|
|
|
35
|
$class =~ s{::}{/}g; |
16
|
8
|
|
|
|
|
17
|
$class .= '.pm'; |
17
|
|
|
|
|
|
|
|
18
|
8
|
|
|
|
|
392
|
my $public = abs_path $INC{$class}; |
19
|
8
|
|
|
|
|
52
|
$public =~ s/\.pm$//; |
20
|
|
|
|
|
|
|
|
21
|
8
|
|
|
|
|
16
|
push @{$renderer->paths}, "$public/templates"; |
|
8
|
|
|
|
|
43
|
|
22
|
|
|
|
|
|
|
} |
23
|
|
|
|
|
|
|
|
24
|
|
|
|
|
|
|
1; |
25
|
|
|
|
|
|
|
|
26
|
|
|
|
|
|
|
__END__ |
27
|
|
|
|
|
|
|
|
28
|
|
|
|
|
|
|
=pod |
29
|
|
|
|
|
|
|
|
30
|
|
|
|
|
|
|
=encoding UTF-8 |
31
|
|
|
|
|
|
|
|
32
|
|
|
|
|
|
|
=head1 NAME |
33
|
|
|
|
|
|
|
|
34
|
|
|
|
|
|
|
Mojolicious::Plugin::Prove::Base - Base class for Mojolicious::Plugin::Prove |
35
|
|
|
|
|
|
|
|
36
|
|
|
|
|
|
|
=head1 VERSION |
37
|
|
|
|
|
|
|
|
38
|
|
|
|
|
|
|
version 0.11 |
39
|
|
|
|
|
|
|
|
40
|
|
|
|
|
|
|
=head1 METHODS |
41
|
|
|
|
|
|
|
|
42
|
|
|
|
|
|
|
=head2 add_template_path |
43
|
|
|
|
|
|
|
|
44
|
|
|
|
|
|
|
Adds the path to templates for some loaded classes |
45
|
|
|
|
|
|
|
|
46
|
|
|
|
|
|
|
=head1 AUTHOR |
47
|
|
|
|
|
|
|
|
48
|
|
|
|
|
|
|
Renee Baecker <reneeb@cpan.org> |
49
|
|
|
|
|
|
|
|
50
|
|
|
|
|
|
|
=head1 COPYRIGHT AND LICENSE |
51
|
|
|
|
|
|
|
|
52
|
|
|
|
|
|
|
This software is Copyright (c) 2015 by Renee Baecker. |
53
|
|
|
|
|
|
|
|
54
|
|
|
|
|
|
|
This is free software, licensed under: |
55
|
|
|
|
|
|
|
|
56
|
|
|
|
|
|
|
The Artistic License 2.0 (GPL Compatible) |
57
|
|
|
|
|
|
|
|
58
|
|
|
|
|
|
|
=cut |
59
|
|
|
|
|
|
|
|