line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package Mojolicious::Plugin::Module; |
2
|
3
|
|
|
3
|
|
268464
|
use Mojo::Base 'Mojolicious::Plugin'; |
|
3
|
|
|
|
|
30722
|
|
|
3
|
|
|
|
|
24
|
|
3
|
3
|
|
|
3
|
|
5473
|
use Mojolicious::Plugin::Module::Manager; |
|
3
|
|
|
|
|
10
|
|
|
3
|
|
|
|
|
37
|
|
4
|
3
|
|
|
3
|
|
1964
|
use Mojolicious::Plugin::Module::Assets; |
|
0
|
|
|
|
|
|
|
|
0
|
|
|
|
|
|
|
5
|
|
|
|
|
|
|
our $VERSION = "0.03"; |
6
|
|
|
|
|
|
|
|
7
|
|
|
|
|
|
|
sub register { |
8
|
|
|
|
|
|
|
my ($self, $app, $conf) = @_; |
9
|
|
|
|
|
|
|
|
10
|
|
|
|
|
|
|
$conf ||= { conf_dir => 'config', mod_dir => 'module' }; |
11
|
|
|
|
|
|
|
$conf->{conf_dir} = 'config' unless exists $conf->{conf_dir}; |
12
|
|
|
|
|
|
|
$conf->{mod_dir} = 'module' unless exists $conf->{mod_dir}; |
13
|
|
|
|
|
|
|
|
14
|
|
|
|
|
|
|
Mojolicious::Plugin::Module::Manager->new->init($app, $conf); |
15
|
|
|
|
|
|
|
Mojolicious::Plugin::Module::Assets->new->init($app); |
16
|
|
|
|
|
|
|
} |
17
|
|
|
|
|
|
|
|
18
|
|
|
|
|
|
|
1; |
19
|
|
|
|
|
|
|
|
20
|
|
|
|
|
|
|
__END__ |