line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
#--------------------------------------------------------------------- |
2
|
|
|
|
|
|
|
package Pod::Loom::Template::Identity; |
3
|
|
|
|
|
|
|
# |
4
|
|
|
|
|
|
|
# Copyright 2009 Christopher J. Madsen |
5
|
|
|
|
|
|
|
# |
6
|
|
|
|
|
|
|
# Author: Christopher J. Madsen <perl@cjmweb.net> |
7
|
|
|
|
|
|
|
# Created: 7 Oct 2009 |
8
|
|
|
|
|
|
|
# |
9
|
|
|
|
|
|
|
# This program is free software; you can redistribute it and/or modify |
10
|
|
|
|
|
|
|
# it under the same terms as Perl itself. |
11
|
|
|
|
|
|
|
# |
12
|
|
|
|
|
|
|
# This program is distributed in the hope that it will be useful, |
13
|
|
|
|
|
|
|
# but WITHOUT ANY WARRANTY; without even the implied warranty of |
14
|
|
|
|
|
|
|
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See either the |
15
|
|
|
|
|
|
|
# GNU General Public License or the Artistic License for more details. |
16
|
|
|
|
|
|
|
# |
17
|
|
|
|
|
|
|
# ABSTRACT: Do-nothing template for Pod::Loom |
18
|
|
|
|
|
|
|
#--------------------------------------------------------------------- |
19
|
|
|
|
|
|
|
|
20
|
1
|
|
|
1
|
|
14
|
use 5.008; |
|
1
|
|
|
|
|
2
|
|
|
1
|
|
|
|
|
48
|
|
21
|
|
|
|
|
|
|
our $VERSION = '0.03'; |
22
|
|
|
|
|
|
|
# This file is part of Pod-Loom 0.08 (March 23, 2014) |
23
|
|
|
|
|
|
|
|
24
|
1
|
|
|
1
|
|
3
|
use strict; |
|
1
|
|
|
|
|
2
|
|
|
1
|
|
|
|
|
27
|
|
25
|
1
|
|
|
1
|
|
3
|
use warnings; |
|
1
|
|
|
|
|
1
|
|
|
1
|
|
|
|
|
67
|
|
26
|
|
|
|
|
|
|
|
27
|
|
|
|
|
|
|
|
28
|
|
|
|
|
|
|
sub new |
29
|
|
|
|
|
|
|
{ |
30
|
1
|
|
|
1
|
1
|
4
|
bless {}, shift; |
31
|
|
|
|
|
|
|
} # end new |
32
|
|
|
|
|
|
|
#--------------------------------------------------------------------- |
33
|
|
|
|
|
|
|
|
34
|
|
|
|
|
|
|
|
35
|
|
|
|
|
|
|
sub weave |
36
|
|
|
|
|
|
|
{ |
37
|
1
|
|
|
1
|
1
|
1
|
my ($self, $podRef, $filename) = @_; |
38
|
|
|
|
|
|
|
|
39
|
1
|
|
|
|
|
3
|
$$podRef; |
40
|
|
|
|
|
|
|
} # end weave |
41
|
|
|
|
|
|
|
|
42
|
|
|
|
|
|
|
#===================================================================== |
43
|
|
|
|
|
|
|
# Package Return Value: |
44
|
|
|
|
|
|
|
|
45
|
|
|
|
|
|
|
1; |
46
|
|
|
|
|
|
|
|
47
|
|
|
|
|
|
|
__END__ |
48
|
|
|
|
|
|
|
|
49
|
|
|
|
|
|
|
=head1 NAME |
50
|
|
|
|
|
|
|
|
51
|
|
|
|
|
|
|
Pod::Loom::Template::Identity - Do-nothing template for Pod::Loom |
52
|
|
|
|
|
|
|
|
53
|
|
|
|
|
|
|
=head1 VERSION |
54
|
|
|
|
|
|
|
|
55
|
|
|
|
|
|
|
This document describes version 0.03 of |
56
|
|
|
|
|
|
|
Pod::Loom::Template::Identity, released March 23, 2014 |
57
|
|
|
|
|
|
|
as part of Pod-Loom version 0.08. |
58
|
|
|
|
|
|
|
|
59
|
|
|
|
|
|
|
=head1 DESCRIPTION |
60
|
|
|
|
|
|
|
|
61
|
|
|
|
|
|
|
This is the simplest possible template for L<Pod::Loom>. It does |
62
|
|
|
|
|
|
|
absolutely nothing to the collected POD. The result is simply to |
63
|
|
|
|
|
|
|
collect all POD sections and move them to the end of the file. |
64
|
|
|
|
|
|
|
|
65
|
|
|
|
|
|
|
It demonstrates that a Pod::Loom template does not have to be a |
66
|
|
|
|
|
|
|
subclass of L<Pod::Loom::Template>, and doesn't even need to use L<Moose>. |
67
|
|
|
|
|
|
|
|
68
|
|
|
|
|
|
|
=head1 METHODS |
69
|
|
|
|
|
|
|
|
70
|
|
|
|
|
|
|
=head2 new |
71
|
|
|
|
|
|
|
|
72
|
|
|
|
|
|
|
$template = Pod::Loom::Template::Identity->new($data); |
73
|
|
|
|
|
|
|
|
74
|
|
|
|
|
|
|
A template must have a constructor named C<new> that takes one argument. |
75
|
|
|
|
|
|
|
(In this case, we discard it.) |
76
|
|
|
|
|
|
|
|
77
|
|
|
|
|
|
|
|
78
|
|
|
|
|
|
|
=head2 weave |
79
|
|
|
|
|
|
|
|
80
|
|
|
|
|
|
|
$new_pod = $template->weave(\$old_pod, $filename); |
81
|
|
|
|
|
|
|
|
82
|
|
|
|
|
|
|
A template must also have a C<weave> method that returns the new POD. |
83
|
|
|
|
|
|
|
The Identity template simply returns the POD unchanged. |
84
|
|
|
|
|
|
|
|
85
|
|
|
|
|
|
|
=head1 INCOMPATIBILITIES |
86
|
|
|
|
|
|
|
|
87
|
|
|
|
|
|
|
None reported. |
88
|
|
|
|
|
|
|
|
89
|
|
|
|
|
|
|
=head1 BUGS AND LIMITATIONS |
90
|
|
|
|
|
|
|
|
91
|
|
|
|
|
|
|
No bugs have been reported. |
92
|
|
|
|
|
|
|
|
93
|
|
|
|
|
|
|
=head1 AUTHOR |
94
|
|
|
|
|
|
|
|
95
|
|
|
|
|
|
|
Christopher J. Madsen S<C<< <perl AT cjmweb.net> >>> |
96
|
|
|
|
|
|
|
|
97
|
|
|
|
|
|
|
Please report any bugs or feature requests |
98
|
|
|
|
|
|
|
to S<C<< <bug-Pod-Loom AT rt.cpan.org> >>> |
99
|
|
|
|
|
|
|
or through the web interface at |
100
|
|
|
|
|
|
|
L<< http://rt.cpan.org/Public/Bug/Report.html?Queue=Pod-Loom >>. |
101
|
|
|
|
|
|
|
|
102
|
|
|
|
|
|
|
You can follow or contribute to Pod-Loom's development at |
103
|
|
|
|
|
|
|
L<< https://github.com/madsen/pod-loom >>. |
104
|
|
|
|
|
|
|
|
105
|
|
|
|
|
|
|
=head1 COPYRIGHT AND LICENSE |
106
|
|
|
|
|
|
|
|
107
|
|
|
|
|
|
|
This software is copyright (c) 2014 by Christopher J. Madsen. |
108
|
|
|
|
|
|
|
|
109
|
|
|
|
|
|
|
This is free software; you can redistribute it and/or modify it under |
110
|
|
|
|
|
|
|
the same terms as the Perl 5 programming language system itself. |
111
|
|
|
|
|
|
|
|
112
|
|
|
|
|
|
|
=head1 DISCLAIMER OF WARRANTY |
113
|
|
|
|
|
|
|
|
114
|
|
|
|
|
|
|
BECAUSE THIS SOFTWARE IS LICENSED FREE OF CHARGE, THERE IS NO WARRANTY |
115
|
|
|
|
|
|
|
FOR THE SOFTWARE, TO THE EXTENT PERMITTED BY APPLICABLE LAW. EXCEPT WHEN |
116
|
|
|
|
|
|
|
OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR OTHER PARTIES |
117
|
|
|
|
|
|
|
PROVIDE THE SOFTWARE "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER |
118
|
|
|
|
|
|
|
EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED |
119
|
|
|
|
|
|
|
WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. THE |
120
|
|
|
|
|
|
|
ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE SOFTWARE IS WITH |
121
|
|
|
|
|
|
|
YOU. SHOULD THE SOFTWARE PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL |
122
|
|
|
|
|
|
|
NECESSARY SERVICING, REPAIR, OR CORRECTION. |
123
|
|
|
|
|
|
|
|
124
|
|
|
|
|
|
|
IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING |
125
|
|
|
|
|
|
|
WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY AND/OR |
126
|
|
|
|
|
|
|
REDISTRIBUTE THE SOFTWARE AS PERMITTED BY THE ABOVE LICENSE, BE |
127
|
|
|
|
|
|
|
LIABLE TO YOU FOR DAMAGES, INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL, |
128
|
|
|
|
|
|
|
OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE USE OR INABILITY TO USE |
129
|
|
|
|
|
|
|
THE SOFTWARE (INCLUDING BUT NOT LIMITED TO LOSS OF DATA OR DATA BEING |
130
|
|
|
|
|
|
|
RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD PARTIES OR A |
131
|
|
|
|
|
|
|
FAILURE OF THE SOFTWARE TO OPERATE WITH ANY OTHER SOFTWARE), EVEN IF |
132
|
|
|
|
|
|
|
SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF |
133
|
|
|
|
|
|
|
SUCH DAMAGES. |
134
|
|
|
|
|
|
|
|
135
|
|
|
|
|
|
|
=cut |