Pod::2::html - Convert POD Documentations into HTML files, using a template
use Pod::2::html; my $pod = pod2html->new('/usr/bin/foo.pl'); $pod->template('bar.tmpl'); $pod->readpod(-head1 => "a", -head3 => "c", -text => "b");
You can create a HTML file, out of POD Documentations, using a HTML template. In some parts, you can specify a CSS class with a switch in the readpod() Method.
$pod->readpod(-head1 => "a");
specified the CSS class "a" for the POD - part "head1". The Following CSS parts are availabl in this Version:
- -head(\d+): Every head part is usable. The HTML Tag is h(\d+)
- -over: The -over option uses the HTML tag ul fpr listings
- -item: The -item Option is using the h3 Tag for subroutine Documentation
In the template file, you created, a tag named <main> must exist. This tag will be replaced with the documentation, created of the POD parts in the script.
Ingo Walz, <lt>email@example.com<gt>
Copyright (C) 2005 by Ingo Walz
This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself, either Perl version 5.8.4 or, at your option, any later version of Perl 5 you may have available.