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   395 use strict;
  1         5  
  1         29  
3 1     1   3 use warnings;
  1         1  
  1         20  
4              
5 1     1   535 use Dancer::Plugin;
  1         53835  
  1         69  
6 1     1   174 use Articulate;
  0            
  0            
7             our $VERSION = '0.001';
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             framework: Articulate::FrameworkAdapter::Dancer1
25             # Other Articulate config goes here
26              
27             Creates an instance of L using your Dancer config, and enables the app, declaring routes, etc.
28             See L for how to configure and use it, and L for details of the integration between Dancer1 and Articulate.
29              
30             =head1 SEE ALSO
31              
32             =over
33              
34             =item * L
35              
36             =item * L
37              
38             =item * L
39              
40             =item * L
41              
42             =back
43              
44             =cut
45              
46             register articulate_app => sub {
47             return Articulate->instance(plugin_setting);
48             };
49              
50             register_plugin();
51              
52             =head1 BUGS
53              
54             Bugs should be reported to the L. Pull Requests welcome!
55              
56             =head1 COPYRIGHT
57              
58             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.
59              
60             =cut
61              
62             1;