line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package Pod::Weaver::Role::Section 4.019; |
2
|
|
|
|
|
|
|
# ABSTRACT: a plugin that will get a section into a woven document |
3
|
|
|
|
|
|
|
|
4
|
10
|
|
|
10
|
|
6348
|
use Moose::Role; |
|
10
|
|
|
|
|
27
|
|
|
10
|
|
|
|
|
100
|
|
5
|
|
|
|
|
|
|
with 'Pod::Weaver::Role::Plugin'; |
6
|
|
|
|
|
|
|
|
7
|
10
|
|
|
10
|
|
55072
|
use namespace::autoclean; |
|
10
|
|
|
|
|
27
|
|
|
10
|
|
|
|
|
112
|
|
8
|
|
|
|
|
|
|
|
9
|
|
|
|
|
|
|
#pod =head1 IMPLEMENTING |
10
|
|
|
|
|
|
|
#pod |
11
|
|
|
|
|
|
|
#pod This role is used by plugins that will append sections to the output document. |
12
|
|
|
|
|
|
|
#pod They must provide a method, C<weave_section> which will be invoked like this: |
13
|
|
|
|
|
|
|
#pod |
14
|
|
|
|
|
|
|
#pod $section_plugin->weave_section($output_document, \%input); |
15
|
|
|
|
|
|
|
#pod |
16
|
|
|
|
|
|
|
#pod They are expected to append their output to the output document, but they are |
17
|
|
|
|
|
|
|
#pod free to behave differently if it's needed to do something really cool. |
18
|
|
|
|
|
|
|
#pod |
19
|
|
|
|
|
|
|
#pod =cut |
20
|
|
|
|
|
|
|
|
21
|
|
|
|
|
|
|
requires 'weave_section'; |
22
|
|
|
|
|
|
|
|
23
|
|
|
|
|
|
|
1; |
24
|
|
|
|
|
|
|
|
25
|
|
|
|
|
|
|
__END__ |
26
|
|
|
|
|
|
|
|
27
|
|
|
|
|
|
|
=pod |
28
|
|
|
|
|
|
|
|
29
|
|
|
|
|
|
|
=encoding UTF-8 |
30
|
|
|
|
|
|
|
|
31
|
|
|
|
|
|
|
=head1 NAME |
32
|
|
|
|
|
|
|
|
33
|
|
|
|
|
|
|
Pod::Weaver::Role::Section - a plugin that will get a section into a woven document |
34
|
|
|
|
|
|
|
|
35
|
|
|
|
|
|
|
=head1 VERSION |
36
|
|
|
|
|
|
|
|
37
|
|
|
|
|
|
|
version 4.019 |
38
|
|
|
|
|
|
|
|
39
|
|
|
|
|
|
|
=head1 PERL VERSION |
40
|
|
|
|
|
|
|
|
41
|
|
|
|
|
|
|
This module should work on any version of perl still receiving updates from |
42
|
|
|
|
|
|
|
the Perl 5 Porters. This means it should work on any version of perl released |
43
|
|
|
|
|
|
|
in the last two to three years. (That is, if the most recently released |
44
|
|
|
|
|
|
|
version is v5.40, then this module should work on both v5.40 and v5.38.) |
45
|
|
|
|
|
|
|
|
46
|
|
|
|
|
|
|
Although it may work on older versions of perl, no guarantee is made that the |
47
|
|
|
|
|
|
|
minimum required version will not be increased. The version may be increased |
48
|
|
|
|
|
|
|
for any reason, and there is no promise that patches will be accepted to lower |
49
|
|
|
|
|
|
|
the minimum required perl. |
50
|
|
|
|
|
|
|
|
51
|
|
|
|
|
|
|
=head1 IMPLEMENTING |
52
|
|
|
|
|
|
|
|
53
|
|
|
|
|
|
|
This role is used by plugins that will append sections to the output document. |
54
|
|
|
|
|
|
|
They must provide a method, C<weave_section> which will be invoked like this: |
55
|
|
|
|
|
|
|
|
56
|
|
|
|
|
|
|
$section_plugin->weave_section($output_document, \%input); |
57
|
|
|
|
|
|
|
|
58
|
|
|
|
|
|
|
They are expected to append their output to the output document, but they are |
59
|
|
|
|
|
|
|
free to behave differently if it's needed to do something really cool. |
60
|
|
|
|
|
|
|
|
61
|
|
|
|
|
|
|
=head1 AUTHOR |
62
|
|
|
|
|
|
|
|
63
|
|
|
|
|
|
|
Ricardo SIGNES <cpan@semiotic.systems> |
64
|
|
|
|
|
|
|
|
65
|
|
|
|
|
|
|
=head1 COPYRIGHT AND LICENSE |
66
|
|
|
|
|
|
|
|
67
|
|
|
|
|
|
|
This software is copyright (c) 2023 by Ricardo SIGNES. |
68
|
|
|
|
|
|
|
|
69
|
|
|
|
|
|
|
This is free software; you can redistribute it and/or modify it under |
70
|
|
|
|
|
|
|
the same terms as the Perl 5 programming language system itself. |
71
|
|
|
|
|
|
|
|
72
|
|
|
|
|
|
|
=cut |