Debian Codegraph @

bench/perl/Template/Plugin/Pod.pm

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