line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package Mojolicious::Plugin::Shortcut; |
2
|
1
|
|
|
1
|
|
117229
|
use Mojo::Base 'Mojolicious::Plugin'; |
|
1
|
|
|
|
|
4
|
|
|
1
|
|
|
|
|
6
|
|
3
|
1
|
|
|
1
|
|
633
|
use experimental 'signatures'; |
|
1
|
|
|
|
|
753
|
|
|
1
|
|
|
|
|
6
|
|
4
|
|
|
|
|
|
|
|
5
|
|
|
|
|
|
|
our $VERSION = '0.003'; # TRIAL VERSION |
6
|
|
|
|
|
|
|
|
7
|
1
|
|
|
1
|
|
448
|
use Mojo::Shortcut; |
|
1
|
|
|
|
|
2
|
|
|
1
|
|
|
|
|
7
|
|
8
|
|
|
|
|
|
|
|
9
|
1
|
50
|
|
1
|
1
|
37
|
sub register($self, $app, $options) { |
|
1
|
50
|
|
|
|
3
|
|
|
1
|
|
|
|
|
1
|
|
|
1
|
|
|
|
|
1
|
|
|
1
|
|
|
|
|
1
|
|
|
1
|
|
|
|
|
2
|
|
10
|
3
|
|
|
|
|
5
|
$app->helper( |
11
|
3
|
50
|
|
3
|
|
2267
|
'shortcut' => sub($c,@args) { |
|
3
|
|
|
|
|
11
|
|
|
3
|
|
|
|
|
4
|
|
12
|
3
|
|
|
|
|
10
|
my $short = Mojo::Shortcut->new(@args); |
13
|
3
|
|
100
|
|
|
63
|
$short->{namespaces} //= [ref $c->app]; |
14
|
3
|
|
|
|
|
79
|
$short; |
15
|
|
|
|
|
|
|
} |
16
|
1
|
|
|
|
|
7
|
); |
17
|
|
|
|
|
|
|
} |
18
|
|
|
|
|
|
|
|
19
|
|
|
|
|
|
|
1; |
20
|
|
|
|
|
|
|
|
21
|
|
|
|
|
|
|
# ABSTRACT: Plugin for Mojo::Shortcut to use short#action like invocations |
22
|
|
|
|
|
|
|
|
23
|
|
|
|
|
|
|
__END__ |