File Coverage

blib/lib/App/Embra/Role/FileAssembler.pm
Criterion Covered Total %
statement 12 12 100.0
branch n/a
condition n/a
subroutine 4 4 100.0
pod n/a
total 16 16 100.0


line stmt bran cond sub pod time code
1 2     2   15054 use strict;
  2         2  
  2         73  
2 2     2   8 use warnings;
  2         2  
  2         91  
3              
4             package App::Embra::Role::FileAssembler;
5             $App::Embra::Role::FileAssembler::VERSION = '0.001'; # TRIAL
6             # ABSTRACT: something that assembles file content into its publishable form
7              
8 2     2   7 use Method::Signatures;
  2         4  
  2         17  
9 2     2   677 use Moo::Role;
  2         3  
  2         32  
10              
11              
12             with 'App::Embra::Role::Plugin';
13              
14             requires 'assemble_files';
15              
16             1;
17              
18             __END__
19              
20             =pod
21              
22             =encoding UTF-8
23              
24             =head1 NAME
25              
26             App::Embra::Role::FileAssembler - something that assembles file content into its publishable form
27              
28             =head1 VERSION
29              
30             version 0.001
31              
32             =head1 DESCRIPTION
33              
34             This role should be implemented by any plugin which alters a file's content into its final format. It requires plugins provide a C<assemble_files> method, which will be called late in the process of collating your site.
35              
36             Plugins which implement this role can access the site's files via the C<L<files|App::Embra/files>> attribute of its C<L<embra|App::Embra::Role::Plugin/embra>> attribute.
37              
38             =head1 AUTHOR
39              
40             Daniel Holz <dgholz@gmail.com>
41              
42             =head1 COPYRIGHT AND LICENSE
43              
44             This software is copyright (c) 2015 by Daniel Holz.
45              
46             This is free software; you can redistribute it and/or modify it under
47             the same terms as the Perl 5 programming language system itself.
48              
49             =cut