HiD/Generator.pm untested

filter: Statementstmt 0.0% 0 / 27 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 0.0% 0 / 8 Podpod n/a totaltotal 0.0% 0 / 35 CC 1 SCAR 6.9
CC
1
Cov
0%
BEGIN
2.0
BEGIN
2.0
BEGIN
2.0
CRAP 2.0
1 # ABSTRACT: Base class for generators
2  
3  
4 package HiD::Generator;
5 $HiD::Generator::VERSION = '1.5';
6 use Moose::Role;
7  
8 use 5.014;
9 use utf8;
10 use autodie;
11 use warnings qw/ FATAL utf8 /;
12 use charnames qw/ :full /;
13 use feature qw/ unicode_strings /;
14  
15 requires 'generate';
16  
17  
18 no Moose::Role;
19 1;
20  
21 __END__
22  
23 =pod
24  
25 =encoding utf-8
26  
27 =head1 NAME
28  
29 HiD::Generator - Base class for generators
30  
31 =head1 DESCRIPTION
32  
33 Role for generator objects
34  
35 See L<http://jekyllrb.com/docs/plugins/#generators> for more details. The HiD
36 implementation differs somewhat, particularly in supporting additional plugin
37 functionality in a post-publication phase (see L<HiD::Plugin>), but generators
38 should still be used for things that need to modify content or inject new
39 programatically generated objects into the publication process.
40  
41 Generator objects should consume this role, and implement the C<generate>
42 method that it requires. This method will be passed the C<$site> object from
43 L<HiD>. Pages to be generated are in C<< $site->pages >>, posts are in C<<
44 $site->posts >> and so on.
45  
46 =head1 METHODS
47  
48 =head2 generate
49  
50 =head1 VERSION
51  
52 version 1.5
53  
54 =head1 AUTHOR
55  
56 John SJ Anderson <genehack@genehack.org>
57  
58 =head1 COPYRIGHT AND LICENSE
59  
60 This software is copyright (c) 2014 by John SJ Anderson.
61  
62 This is free software; you can redistribute it and/or modify it under
63 the same terms as the Perl 5 programming language system itself.
64  
65 =cut