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.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<Articulate> using your Dancer config, and enables the app, declaring routes, etc.
29 See L<Articulate> for how to configure and use it, and L<Articulate::FrameworkAdapter::Dancer1> for details of the integration between Dancer1 and Articulate.
30  
31 =head1 SEE ALSO
32  
33 =over
34  
35 =item * L<Dancer2::Plugin::Articulate>
36  
37 =item * L<Dancer::Plugins>
38  
39 =item * L<Dancer::Config>
40  
41 =item * L<Articulate::FrameworkAdapter::Dancer1>
42  
43 =back
44  
45 =cut
46  
47 register articulate_app => sub {
48 0 ▶ return Articulate->instance(plugin_setting);
Subroutine __ANON__: not called CC=1 SCAR=6.9
49 1 };
50  
51 1 register_plugin();
52  
53 =head1 BUGS
54  
55 Bugs should be reported to the L<github issue tracker|https://github.com/pdl/Articulate/issues>. 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 1;
« Articulate/FrameworkAdapter/Dancer1.pm ↑ Summary