Egg::Plugin::Pod::HTML - pod2html for Egg.
Contoller.
package MYPROJECT; use strict; use Egg qw/Pod::HTML/;
Configuration.
plugin_pod2html => { lib_path=> [qw{ /home/lib /home/perl-lib }], },
Dispatch.
__PACKAGE__->run_modes( pod => sub { my($dispat, $e)= @_; my $body= $e->pod2html( $e->snip(1) ) || return $e->finished( 404 ); $e->response->body( $body ); }, );
Request url.
http://domain.name/pod/HTML::Mason
The result of the return of 'pod2html' command is returned by the SCALAR reference.
my $html= $e->pod2html('CGI::Cookie');
The part of '<body> ... </body>' is returned from the result of pod2html.
my $body= $e->pod2html_body('CGI::Cookie');
Egg::Release,
Masatoshi Mizuno <lushe@cpan.org>
Copyright (C) 2007 by Bee Flag, Corp. <http://egg.bomcity.com/>, All Rights Reserved.
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.6 or, at your option, any later version of Perl 5 you may have available.
To install Egg::Release, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Egg::Release
CPAN shell
perl -MCPAN -e shell install Egg::Release
For more information on module installation, please visit the detailed CPAN module installation guide.