File Coverage

blib/lib/Mason/PluginBundle/Default.pm
Criterion Covered Total %
statement 4 4 100.0
branch n/a
condition n/a
subroutine 2 2 100.0
pod 0 1 0.0
total 6 7 85.7


line stmt bran cond sub pod time code
1             package Mason::PluginBundle::Default;
2             $Mason::PluginBundle::Default::VERSION = '2.23';
3 20     20   18053 use Mason::PluginRole;
  20         734  
  20         119  
4             with 'Mason::PluginBundle';
5              
6 110     110 0 815 sub requires_plugins { qw(Defer DollarDot) }
7              
8             1;
9              
10             __END__
11              
12             =pod
13              
14             =head1 NAME
15              
16             Mason::PluginBundle::Default - Default plugins
17              
18             =head1 DESCRIPTION
19              
20             Plugins in this bundle are always added by default, regardless of whether you
21             pass a plugins list to C<< Mason->new >>. You can use the '-' prefix to remove
22             individual plugins or the whole bundle. e.g.
23              
24             # Will get just the default plugins
25             Mason->new(...);
26             Mason->new(plugins => [], ...);
27              
28             # Will get the default plugins plus the 'Foo' plugin
29             Mason->new(plugins => ['Foo'], ...);
30              
31             # Will get the default plugins except for 'DollarDot'
32             Mason->new(plugins => ['-DollarDot'], ...);
33              
34             # Will get no plugins
35             Mason->new(plugins => ['-Default'], ...);
36              
37             =head1 INCLUDED PLUGINS
38              
39             =over
40              
41             =item L<Defer|Mason::Plugin::Defer>
42              
43             =item L<DollarDot|Mason::Plugin::DollarDot>
44              
45             =back
46              
47             =head1 SEE ALSO
48              
49             L<Mason|Mason>
50              
51             =head1 AUTHOR
52              
53             Jonathan Swartz <swartz@pobox.com>
54              
55             =head1 COPYRIGHT AND LICENSE
56              
57             This software is copyright (c) 2012 by Jonathan Swartz.
58              
59             This is free software; you can redistribute it and/or modify it under
60             the same terms as the Perl 5 programming language system itself.
61              
62             =cut