line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package Mojolicious::Plugin::Module; |
2
|
3
|
|
|
3
|
|
150063
|
use Mojo::Base 'Mojolicious::Plugin'; |
|
3
|
|
|
|
|
11285
|
|
|
3
|
|
|
|
|
21
|
|
3
|
3
|
|
|
3
|
|
3181
|
use Mojolicious::Plugin::Module::Manager; |
|
3
|
|
|
|
|
7
|
|
|
3
|
|
|
|
|
38
|
|
4
|
3
|
|
|
3
|
|
1932
|
use Mojolicious::Plugin::Module::Assets; |
|
3
|
|
|
|
|
8
|
|
|
3
|
|
|
|
|
35
|
|
5
|
|
|
|
|
|
|
our $VERSION = "0.04"; |
6
|
|
|
|
|
|
|
|
7
|
|
|
|
|
|
|
sub register { |
8
|
2
|
|
|
2
|
1
|
103
|
my ($self, $app, $conf) = @_; |
9
|
|
|
|
|
|
|
|
10
|
2
|
|
50
|
|
|
12
|
$conf ||= { conf_dir => 'config', mod_dir => 'module' }; |
11
|
2
|
50
|
|
|
|
10
|
$conf->{conf_dir} = 'config' unless exists $conf->{conf_dir}; |
12
|
2
|
50
|
|
|
|
12
|
$conf->{mod_dir} = 'module' unless exists $conf->{mod_dir}; |
13
|
|
|
|
|
|
|
|
14
|
2
|
|
|
|
|
22
|
Mojolicious::Plugin::Module::Manager->new->init($app, $conf); |
15
|
2
|
|
|
|
|
106
|
Mojolicious::Plugin::Module::Assets->new->init($app); |
16
|
|
|
|
|
|
|
} |
17
|
|
|
|
|
|
|
|
18
|
|
|
|
|
|
|
1; |
19
|
|
|
|
|
|
|
|
20
|
|
|
|
|
|
|
__END__ |