Pod::HtmlEasy 0.091
Sponsored Links
Pod::HtmlEasy 0.091 Ranking & Summary
File size:
0.025 MB
Platform:
Any Platform
License:
Perl Artistic License
Price:
Downloads:
824
Date added:
2007-07-23
Publisher:
Graciliano M. P.
Pod::HtmlEasy 0.091 description
Pod::HtmlEasy Perl module can generate personalized HTML from PODs. By default the HTML generated is similar to the CPAN site style for module documentation.
SYNOPSIS
Simple usage:
my $podhtml = Pod::HtmlEasy- >new() ;
my $html = $podhtml- >pod2html( test.pod ) ;
print "$htmln" ;
Complete usage:
use Pod::HtmlEasy ;
Create the object and set local events subs:
Note that these are all the events, and examples of how to implement
them. All of these events are, of course, already implemented, so if
the actions provided are adequate, no local subs are required.
The actual implementation of on_head1 is somewhat more complex, to
provide for the detection of the module title and insertion of the
uparrow.
my $podhtml = Pod::HtmlEasy- >new (
on_B = > sub {
my ( $this , $txt ) = @_ ;
return "< b >$txt< /b >" ;
} ,
on_C = > sub {
my ( $this , $txt ) = @_ ;
return "< font face=Courier New >$txt< /font >" ;
} ,
on_E = > sub {
my ( $this , $txt ) = @_ ;
$txt =~ s{^&}{}smx;
$txt =~ s{;$}{}smx;
$txt = qq{#$txt} if $txt =~ /^d+$/ ;
return qq{ &$txt;};
} ,
on_F = > sub {
my ( $this , $txt ) = @_ ;
return "< b >< i >$txt< /i >< /b >" ;
} ,
on_I = > sub {
my ( $this , $txt ) = @_ ;
return "< i >$txt< /i >" ;
} ,
on_L = > sub {
my ( $this , $L , $text, $page , $section, $type ) = @_ ;
if ( $type eq pod ) {
$section = defined $section ? "#$section" : ;
$page = unless defined $page;
return "< i >< a href=http://search.cpan.org/perldoc?$page$section >$text< /a >< /i >" ;
}
elsif( $type eq man ) { return "< i >$text< /i >" ;}
elsif( $type eq url ) { return "< a href=$page target=_blank >$text< /a >" ;}
} ,
on_S = > sub {
my ( $this , $txt ) = @_ ;
$txt =~ s/n/ /gs ;
return $txt ;
} ,
on_X = > sub { return ; } ,
on_Z = > sub { return ; } ,
on_back = > sub {
my $this = shift ;
return "< /ul >$NL" ;
} ,
on_begin = > sub {
my $this = shift ;
my ( $txt , $a_name ) = @_ ;
$this- >{IN_BEGIN} = 1;
return ;
} ,
on_error = > sub {
my ( $this , $txt ) = @_ ;
return qq{< !-- POD_ERROR: $txt -- >} ;
} ,
on_end = > sub {
my $this = shift ;
my ( $txt , $a_name ) = @_ ;
delete $this- >{IN_BEGIN};
return ;
} ,
on_for = > sub { return ;} ,
on_head1 = > sub {
my ( $this , $txt , $a_name ) = @_ ;
return qq{< a name=$a_name >< /a >< h1 >$txt< /h1 >$NL$NL} ;
} ,
on_head2 = > sub {
my ( $this , $txt , $a_name ) = @_ ;
return qq{< a name=$a_name >< /a >< h2 >$txt< /h2 >$NL$NL} ;
} ,
on_head3 = > sub {
my ( $this , $txt , $a_name ) = @_ ;
return qq{< a name=$a_name >< /a >< h3 >$txt< /h3 >$NL$NL} ;
} ,
on_head4 = > sub {
my ( $this , $txt , $a_name ) = @_ ;
return qq{< a name=$a_name >< /a >< h4 >$txt< /h4 >$NL$NL} ;
} ,
on_include = > sub {
my ( $this , $file ) = @_ ;
return qq{./$file} ;
} ,
on_item = > sub {
my ( $this , $txt ) = @_ ;
return qq{< li >$txt< /li >$NL} ;
} ,
on_index_node_start = > sub {
my ( $this , $txt , $a_name , $has_children ) = @_ ;
my $ret = qq{< li >< a href=#$a_name >$txt< /a >$NL} ;
$ret .= q{$NL< ul >$NL} if $has_children ;
return $ret ;
} ,
on_index_node_end = > sub {
my $this = shift ;
my ( $txt , $a_name , $has_children ) = @_ ;
my $ret = $has_children ? q{< /ul >} : $EMPTY ;
return $ret ;
} ,
on_over = > sub {
my ( $this , $level ) = @_ ;
return qq{< ul >$NL? ;
} ,
on_textblock = > sub {
my ( $this , $txt ) = @_ ;
return if exists $this- >{IN_BEGIN};
return qq{< p >$txt< /p >$NL} ;
} ,
on_uri = > sub {
my ( $this , $uri ) = @_ ;
return qq{< a href=$uri target=_blank >$uri< /a >{ ;
} ,
on_verbatim = > sub {
my ( $this , $txt ) = @_ ;
$txt =~ s{(A$NL)*(A$NL)z}{}gsmx;
return unless length $txt;
return qq{< pre >$txt< /pre >$NL} ;
} ,
) ;
## Convert to HTML:
my $html = $podhtml- >pod2html(test.pod ,
test.html ,
title = > POD::Test ,
body = > { bgcolor = > #CCCCCC } ,
css = > test.css ,
) ;
SYNOPSIS
Simple usage:
my $podhtml = Pod::HtmlEasy- >new() ;
my $html = $podhtml- >pod2html( test.pod ) ;
print "$htmln" ;
Complete usage:
use Pod::HtmlEasy ;
Create the object and set local events subs:
Note that these are all the events, and examples of how to implement
them. All of these events are, of course, already implemented, so if
the actions provided are adequate, no local subs are required.
The actual implementation of on_head1 is somewhat more complex, to
provide for the detection of the module title and insertion of the
uparrow.
my $podhtml = Pod::HtmlEasy- >new (
on_B = > sub {
my ( $this , $txt ) = @_ ;
return "< b >$txt< /b >" ;
} ,
on_C = > sub {
my ( $this , $txt ) = @_ ;
return "< font face=Courier New >$txt< /font >" ;
} ,
on_E = > sub {
my ( $this , $txt ) = @_ ;
$txt =~ s{^&}{}smx;
$txt =~ s{;$}{}smx;
$txt = qq{#$txt} if $txt =~ /^d+$/ ;
return qq{ &$txt;};
} ,
on_F = > sub {
my ( $this , $txt ) = @_ ;
return "< b >< i >$txt< /i >< /b >" ;
} ,
on_I = > sub {
my ( $this , $txt ) = @_ ;
return "< i >$txt< /i >" ;
} ,
on_L = > sub {
my ( $this , $L , $text, $page , $section, $type ) = @_ ;
if ( $type eq pod ) {
$section = defined $section ? "#$section" : ;
$page = unless defined $page;
return "< i >< a href=http://search.cpan.org/perldoc?$page$section >$text< /a >< /i >" ;
}
elsif( $type eq man ) { return "< i >$text< /i >" ;}
elsif( $type eq url ) { return "< a href=$page target=_blank >$text< /a >" ;}
} ,
on_S = > sub {
my ( $this , $txt ) = @_ ;
$txt =~ s/n/ /gs ;
return $txt ;
} ,
on_X = > sub { return ; } ,
on_Z = > sub { return ; } ,
on_back = > sub {
my $this = shift ;
return "< /ul >$NL" ;
} ,
on_begin = > sub {
my $this = shift ;
my ( $txt , $a_name ) = @_ ;
$this- >{IN_BEGIN} = 1;
return ;
} ,
on_error = > sub {
my ( $this , $txt ) = @_ ;
return qq{< !-- POD_ERROR: $txt -- >} ;
} ,
on_end = > sub {
my $this = shift ;
my ( $txt , $a_name ) = @_ ;
delete $this- >{IN_BEGIN};
return ;
} ,
on_for = > sub { return ;} ,
on_head1 = > sub {
my ( $this , $txt , $a_name ) = @_ ;
return qq{< a name=$a_name >< /a >< h1 >$txt< /h1 >$NL$NL} ;
} ,
on_head2 = > sub {
my ( $this , $txt , $a_name ) = @_ ;
return qq{< a name=$a_name >< /a >< h2 >$txt< /h2 >$NL$NL} ;
} ,
on_head3 = > sub {
my ( $this , $txt , $a_name ) = @_ ;
return qq{< a name=$a_name >< /a >< h3 >$txt< /h3 >$NL$NL} ;
} ,
on_head4 = > sub {
my ( $this , $txt , $a_name ) = @_ ;
return qq{< a name=$a_name >< /a >< h4 >$txt< /h4 >$NL$NL} ;
} ,
on_include = > sub {
my ( $this , $file ) = @_ ;
return qq{./$file} ;
} ,
on_item = > sub {
my ( $this , $txt ) = @_ ;
return qq{< li >$txt< /li >$NL} ;
} ,
on_index_node_start = > sub {
my ( $this , $txt , $a_name , $has_children ) = @_ ;
my $ret = qq{< li >< a href=#$a_name >$txt< /a >$NL} ;
$ret .= q{$NL< ul >$NL} if $has_children ;
return $ret ;
} ,
on_index_node_end = > sub {
my $this = shift ;
my ( $txt , $a_name , $has_children ) = @_ ;
my $ret = $has_children ? q{< /ul >} : $EMPTY ;
return $ret ;
} ,
on_over = > sub {
my ( $this , $level ) = @_ ;
return qq{< ul >$NL? ;
} ,
on_textblock = > sub {
my ( $this , $txt ) = @_ ;
return if exists $this- >{IN_BEGIN};
return qq{< p >$txt< /p >$NL} ;
} ,
on_uri = > sub {
my ( $this , $uri ) = @_ ;
return qq{< a href=$uri target=_blank >$uri< /a >{ ;
} ,
on_verbatim = > sub {
my ( $this , $txt ) = @_ ;
$txt =~ s{(A$NL)*(A$NL)z}{}gsmx;
return unless length $txt;
return qq{< pre >$txt< /pre >$NL} ;
} ,
) ;
## Convert to HTML:
my $html = $podhtml- >pod2html(test.pod ,
test.html ,
title = > POD::Test ,
body = > { bgcolor = > #CCCCCC } ,
css = > test.css ,
) ;
Pod::HtmlEasy 0.091 Screenshot
Pod::HtmlEasy 0.091 Keywords
NL
HtmlEasy
HTML
PODs
HtmlEasy Perl
HtmlEasy 0.091
Personalized HTML
Perl module
From Pods
TXT
return
sub
name
QQ
module
Pod::HtmlEasy
Bookmark Pod::HtmlEasy 0.091
Pod::HtmlEasy 0.091 Copyright
WareSeeker periodically updates pricing and software information of Pod::HtmlEasy 0.091 full version from the publisher, so some information may be slightly out-of-date. You should confirm all information before relying on it. Software piracy is theft, Using crack, password, serial numbers, registration codes, key generators is illegal and prevent future development of Pod::HtmlEasy 0.091 Edition. Download links are directly from our publisher sites, torrent files or links from rapidshare.com, yousendit.com or megaupload.com are not allowed
Featured Software
Want to place your software product here?
Please contact us for consideration.
Contact WareSeeker.com
Related Information
returning to work
tax return
htmleasyprinting wxpython
return to sender
name definitions
return on equity
htmleasyprinting
return to mysterious island
superman returns
baby names
return the favor
perl modules
personalized html codes
return of the mack
return to castle wolfenstein
namenda
return on investment
name meanings
Related Software
Pod::HTML_Elements is a Perl module to convert POD to tree of LWPs HTML::Element and hence HTML or PostScript. Free Download
Pod::Html is a Perl module to convert pod files to HTML. Free Download
Pod::XML is a Perl module to convert POD to XML. Free Download
Pod::Template is a Perl module for building pod documentation from templates. Free Download
Pod::POM is a POD Object Model. Free Download
Pod::WSDL is a Perl module that creates WSDL documents from (extended) pod. Free Download
Blatte::HTML is a Perl module that contains tools for generating HTML with Blatte. Free Download
OpenGeDB Perl module is a module to access the OpenGeoDB database and calculate all ZIP codes in a certain radius. Free Download
Latest Software
Popular Software
Favourite Software