-
Notifications
You must be signed in to change notification settings - Fork 90
/
Pod.pm
87 lines (61 loc) · 1.62 KB
/
Pod.pm
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
#==============================================================================
#
# Template::Plugin::Pod
#
# DESCRIPTION
# Pod parser and object model.
#
# AUTHOR
# Andy Wardley <abw@wardley.org>
#
# COPYRIGHT
# Copyright (C) 2000-2007 Andy Wardley. All Rights Reserved.
#
# This module is free software; you can redistribute it and/or
# modify it under the same terms as Perl itself.
#
#============================================================================
package Template::Plugin::Pod;
use strict;
use warnings;
use base 'Template::Plugin';
use Pod::POM;
our $VERSION = '3.009';
#------------------------------------------------------------------------
# new($context, \%config)
#------------------------------------------------------------------------
sub new {
my $class = shift;
my $context = shift;
Pod::POM->new(@_);
}
1;
__END__
=head1 NAME
Template::Plugin::Pod - Plugin interface to Pod::POM (Pod Object Model)
=head1 SYNOPSIS
[% USE Pod(podfile) %]
[% FOREACH head1 = Pod.head1;
FOREACH head2 = head1/head2;
...
END;
END
%]
=head1 DESCRIPTION
This plugin is an interface to the L<Pod::POM> module.
=head1 AUTHOR
Andy Wardley E<lt>abw@wardley.orgE<gt> L<http://wardley.org/>
=head1 COPYRIGHT
Copyright (C) 1996-2007 Andy Wardley. All Rights Reserved.
This module is free software; you can redistribute it and/or
modify it under the same terms as Perl itself.
=head1 SEE ALSO
L<Template::Plugin>, L<Pod::POM>
=cut
# Local Variables:
# mode: perl
# perl-indent-level: 4
# indent-tabs-mode: nil
# End:
#
# vim: expandtab shiftwidth=4: