File Coverage

blib/lib/Dancer/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 Dancer::Plugin::Articulate;
2 1     1   411 use strict;
  1         2  
  1         28  
3 1     1   4 use warnings;
  1         1  
  1         23  
4              
5 1     1   401 use Dancer::Plugin;
  1         94742  
  1         99  
6 1     1   213 use Articulate;
  0            
  0            
7             our $VERSION = '0.003';
8              
9             =head1 NAME
10              
11             Dancer::Plugin::Articulate - use Articulate in your Dancer App
12              
13             =head1 SYNOPSIS
14              
15             use Dancer;
16             use Dancer::Plugin::Articulate;
17             my $app = articulate_app;
18             $app->enable;
19             dance;
20              
21             # in config.yml
22             plugins:
23             Articulate:
24             components:
25             framework: Articulate::FrameworkAdapter::Dancer1
26             # Other Articulate config goes here
27              
28             Creates an instance of L using your Dancer config, and
29             enables the app, declaring routes, etc. See L for how to
30             configure and use it, and L for
31             details of the integration between Dancer1 and Articulate.
32              
33             =head1 SEE ALSO
34              
35             =over
36              
37             =item * L
38              
39             =item * L
40              
41             =item * L
42              
43             =item * L
44              
45             =back
46              
47             =cut
48              
49             register articulate_app => sub {
50             return Articulate->instance(plugin_setting);
51             };
52              
53             register_plugin();
54              
55             =head1 BUGS
56              
57             Bugs should be reported to the L
58             tracker|https://github.com/pdl/Articulate/issues>. Pull Requests
59             welcome!
60              
61             =head1 COPYRIGHT
62              
63             Articulate is Copyright 2014-2015 Daniel Perrett. You are free to use
64             it subject to the same terms as perl: see the LICENSE file included in
65             this distribution for what this means.
66              
67             =cut
68              
69             1;