File Coverage

blib/lib/Dancer/Plugin/Articulate.pm
Criterion Covered Total %
statement 12 13 92.3
branch n/a
condition n/a
subroutine 4 5 80.0
pod n/a
total 16 18 88.8


line stmt bran cond sub pod time code
1             package Dancer::Plugin::Articulate;
2 1     1   412 use strict;
  1         2  
  1         28  
3 1     1   4 use warnings;
  1         1  
  1         24  
4              
5 1     1   408 use Dancer::Plugin;
  1         69982  
  1         70  
6 1     1   456 use Articulate;
  1         299684  
  1         111  
7             our $VERSION = '0.002';
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 enables the app, declaring routes, etc.
29             See L for how to configure and use it, and L for details of the integration between Dancer1 and Articulate.
30              
31             =head1 SEE ALSO
32              
33             =over
34              
35             =item * L
36              
37             =item * L
38              
39             =item * L
40              
41             =item * L
42              
43             =back
44              
45             =cut
46              
47             register articulate_app => sub {
48 0     0     return Articulate->instance(plugin_setting);
49             };
50              
51             register_plugin();
52              
53             =head1 BUGS
54              
55             Bugs should be reported to the L. Pull Requests welcome!
56              
57             =head1 COPYRIGHT
58              
59             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.
60              
61             =cut
62              
63             1;