line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package Dancer2::Plugin::Articulate; |
2
|
1
|
|
|
1
|
|
462
|
use strict; |
|
1
|
|
|
|
|
1
|
|
|
1
|
|
|
|
|
30
|
|
3
|
1
|
|
|
1
|
|
4
|
use warnings; |
|
1
|
|
|
|
|
1
|
|
|
1
|
|
|
|
|
23
|
|
4
|
|
|
|
|
|
|
|
5
|
1
|
|
|
1
|
|
429
|
use Dancer2::Plugin; |
|
1
|
|
|
|
|
86537
|
|
|
1
|
|
|
|
|
6
|
|
6
|
1
|
|
|
1
|
|
585
|
use Articulate; |
|
1
|
|
|
|
|
180731
|
|
|
1
|
|
|
|
|
107
|
|
7
|
|
|
|
|
|
|
our $VERSION = '0.002'; |
8
|
|
|
|
|
|
|
|
9
|
|
|
|
|
|
|
=head1 NAME |
10
|
|
|
|
|
|
|
|
11
|
|
|
|
|
|
|
Dancer2::Plugin::Articulate - use Articulate in your Dancer2 App |
12
|
|
|
|
|
|
|
|
13
|
|
|
|
|
|
|
=head1 SYNOPSIS |
14
|
|
|
|
|
|
|
|
15
|
|
|
|
|
|
|
# in config.yml |
16
|
|
|
|
|
|
|
plugins: |
17
|
|
|
|
|
|
|
Articulate: |
18
|
|
|
|
|
|
|
components: |
19
|
|
|
|
|
|
|
framework: |
20
|
|
|
|
|
|
|
Articulate::FrameworkAdapter::Dancer2: |
21
|
|
|
|
|
|
|
appname: MyApp |
22
|
|
|
|
|
|
|
# Other Articulate config goes here |
23
|
|
|
|
|
|
|
|
24
|
|
|
|
|
|
|
Creates an instance of L using your Dancer2 config, and enables the app, declaring routes, etc. |
25
|
|
|
|
|
|
|
See L for how to configure and use it, and L for details of the integration between Dancer2 and Articulate. |
26
|
|
|
|
|
|
|
|
27
|
|
|
|
|
|
|
=head1 SEE ALSO |
28
|
|
|
|
|
|
|
|
29
|
|
|
|
|
|
|
=over |
30
|
|
|
|
|
|
|
|
31
|
|
|
|
|
|
|
=item * L |
32
|
|
|
|
|
|
|
|
33
|
|
|
|
|
|
|
=item * L |
34
|
|
|
|
|
|
|
|
35
|
|
|
|
|
|
|
=item * L |
36
|
|
|
|
|
|
|
|
37
|
|
|
|
|
|
|
=item * L |
38
|
|
|
|
|
|
|
|
39
|
|
|
|
|
|
|
=back |
40
|
|
|
|
|
|
|
|
41
|
|
|
|
|
|
|
=cut |
42
|
|
|
|
|
|
|
|
43
|
|
|
|
|
|
|
register articulate_app => sub { |
44
|
|
|
|
|
|
|
my $dsl = shift; |
45
|
|
|
|
|
|
|
Articulate->instance (plugin_setting); |
46
|
|
|
|
|
|
|
}, { is_global => 1}; |
47
|
|
|
|
|
|
|
|
48
|
|
|
|
|
|
|
register_plugin for_versions => [2]; |
49
|
|
|
|
|
|
|
|
50
|
|
|
|
|
|
|
=head1 BUGS |
51
|
|
|
|
|
|
|
|
52
|
|
|
|
|
|
|
Bugs should be reported to the L. Pull Requests welcome! |
53
|
|
|
|
|
|
|
|
54
|
|
|
|
|
|
|
=head1 COPYRIGHT |
55
|
|
|
|
|
|
|
|
56
|
|
|
|
|
|
|
Articulate is Copyright 2014-2015 Daniel Perrett. You are free to use it subject to the same terms as perl: see the LICENSE file included in this distribution for what this means. |
57
|
|
|
|
|
|
|
|
58
|
|
|
|
|
|
|
=cut |
59
|
|
|
|
|
|
|
|
60
|
|
|
|
|
|
|
1; |