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