Dancer/Plugin/Articulate.pm

filter: Statementstmt 94.1% 16 / 17 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 80.0% 4 / 5 Podpod n/a totaltotal 90.9% 20 / 22 SCAR 0.0
CC
1
Cov
94%
__ANON__
2.0
BEGIN
1.0
BEGIN
1.0
CRAP 1.0
« Articulate/FrameworkAdapter/Dancer1.pm ↑ Summary
1 package Dancer::Plugin::Articulate;
2 1 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
3 1 ▶use warnings;
Subroutine BEGIN: called CC=1 SCAR=0.0
4  
5 1 ▶use Dancer::Plugin;
Subroutine BEGIN: called CC=1 SCAR=0.0
6 1 ▶use Articulate;
Subroutine BEGIN: called CC=1 SCAR=0.0
7 1 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<Articulate> using your Dancer config, and enables the app, declaring routes, etc.
28 See L<Articulate> for how to configure and use it, and L<Articulate::FrameworkAdapter::Dancer1> for details of the integration between Dancer1 and Articulate.
29  
30 =head1 SEE ALSO
31  
32 =over
33  
34 =item * L<Dancer2::Plugin::Articulate>
35  
36 =item * L<Dancer::Plugins>
37  
38 =item * L<Dancer::Config>
39  
40 =item * L<Articulate::FrameworkAdapter::Dancer1>
41  
42 =back
43  
44 =cut
45  
46 register articulate_app => sub {
47 0 ▶ return Articulate->instance(plugin_setting);
Subroutine __ANON__: not called CC=1 SCAR=6.9
48 1 };
49  
50 1 register_plugin();
51  
52 =head1 BUGS
53  
54 Bugs should be reported to the L<github issue tracker|https://github.com/pdl/Articulate/issues>. 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 1;
« Articulate/FrameworkAdapter/Dancer1.pm ↑ Summary