File Coverage

blib/lib/Dancer2/Plugin/Articulate.pm
Criterion Covered Total %
statement 10 12 83.3
branch n/a
condition n/a
subroutine 4 4 100.0
pod n/a
total 14 16 87.5


line stmt bran cond sub pod time code
1             package Dancer2::Plugin::Articulate;
2 1     1   574 use strict;
  1         3  
  1         37  
3 1     1   4 use warnings;
  1         1  
  1         41  
4              
5 1     1   597 use Dancer2::Plugin;
  1         82069  
  1         6  
6 1     1   363 use Articulate;
  0            
  0            
7             our $VERSION = '0.001';
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             framework:
19             Articulate::FrameworkAdapter::Dancer2:
20             appname: MyApp
21             # Other Articulate config goes here
22              
23             Creates an instance of L using your Dancer2 config, and enables the app, declaring routes, etc.
24             See L for how to configure and use it, and L for details of the integration between Dancer2 and Articulate.
25              
26             =head1 SEE ALSO
27              
28             =over
29              
30             =item * L
31              
32             =item * L
33              
34             =item * L
35              
36             =item * L
37              
38             =back
39              
40             =cut
41              
42             register articulate_app => sub {
43             my $dsl = shift;
44             Articulate->instance (plugin_setting);
45             }, { is_global => 1};
46              
47             register_plugin for_versions => [2];
48              
49             =head1 BUGS
50              
51             Bugs should be reported to the L. Pull Requests welcome!
52              
53             =head1 COPYRIGHT
54              
55             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.
56              
57             =cut
58              
59             1;