Pod::HTMLEmbed - Make clean html snippets from POD
Get Pod::HTMLEmbed::Entry object from File:
my $p = Pod::HTMLEmbed->new; my $pod = $p->load('/path/to/pod.pod');
Or search by name in @INC
my $p = Pod::HTMLEmbed->new; my $pod = $p->find('Moose');
Or search by name in specified directory
my $p = Pod::HTMLEmbed->new( search_dir => ['/path/to/dir'] ); my $pod = $p->find('Moose');
See Pod::HTMLEmbed::Entry for methods for $pod.
$pod
This module generates small and clean HTML from POD file.
Unlike other pod2html modules, this module enables you to get section based html snippets. For example, you can get an html for SYNOPSIS section by following code:
my $html = $pod->section('SYNOPSIS');
Also you can get simple "Table of contents" html like:
<ul> <li><a href="#NAME">NAME</a></li> <li><a href="#SYNOPSIS">SYNOPSIS</a></li> <li><a href="#METHODS">METHODS</a></li> : </ul>
by following code:
my $toc_html = $pod->toc;
You can easily create custom pod viewer with this module. Enjoy!
Create new Pod::HTMLEmbed object. pod searcher/loader object.
Available options:
Pod search directory.
If this value is set, find method use this directory as search target. Otherwise search @INC.
find
@INC
URL prefix for pod link url. Default is http://search.cpan.org/perldoc?.
http://search.cpan.org/perldoc?
Find pod by $pod_name and return Pod::HTMLEmbed::Entry object if it exists.
Load pod file ($pod_file) and return Pod::HTMLEmbed::Entry object if it exists.
$pod_file
Pod::HTMLEmbed::Entry.
Daisuke Murase typester@cpan.org
typester@cpan.org
Copyright (c) 2009 by KAYAC Inc.
This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
The full text of the license can be found in the LICENSE file included with this module.
To install Pod::HTMLEmbed, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Pod::HTMLEmbed
CPAN shell
perl -MCPAN -e shell install Pod::HTMLEmbed
For more information on module installation, please visit the detailed CPAN module installation guide.