line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
6
|
|
|
6
|
|
23813
|
use strict; |
|
6
|
|
|
|
|
13
|
|
|
6
|
|
|
|
|
258
|
|
2
|
6
|
|
|
6
|
|
31
|
use warnings; |
|
6
|
|
|
|
|
9
|
|
|
6
|
|
|
|
|
319
|
|
3
|
|
|
|
|
|
|
|
4
|
|
|
|
|
|
|
package App::Embra::Role::FileTransformer; |
5
|
|
|
|
|
|
|
$App::Embra::Role::FileTransformer::VERSION = '0.001'; # TRIAL |
6
|
|
|
|
|
|
|
# ABSTRACT: something that transforms file content, but not into its publishable form |
7
|
|
|
|
|
|
|
|
8
|
6
|
|
|
6
|
|
31
|
use Method::Signatures; |
|
6
|
|
|
|
|
9
|
|
|
6
|
|
|
|
|
52
|
|
9
|
6
|
|
|
6
|
|
2568
|
use Moo::Role; |
|
6
|
|
|
|
|
9
|
|
|
6
|
|
|
|
|
40
|
|
10
|
|
|
|
|
|
|
|
11
|
|
|
|
|
|
|
|
12
|
|
|
|
|
|
|
with 'App::Embra::Role::Plugin'; |
13
|
|
|
|
|
|
|
|
14
|
|
|
|
|
|
|
requires 'transform_files'; |
15
|
|
|
|
|
|
|
|
16
|
|
|
|
|
|
|
1; |
17
|
|
|
|
|
|
|
|
18
|
|
|
|
|
|
|
__END__ |
19
|
|
|
|
|
|
|
|
20
|
|
|
|
|
|
|
=pod |
21
|
|
|
|
|
|
|
|
22
|
|
|
|
|
|
|
=encoding UTF-8 |
23
|
|
|
|
|
|
|
|
24
|
|
|
|
|
|
|
=head1 NAME |
25
|
|
|
|
|
|
|
|
26
|
|
|
|
|
|
|
App::Embra::Role::FileTransformer - something that transforms file content, but not 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. It requires plugins provide a C<transform_files> method, which will be called early 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 |