Mojolicious::Plugin::PODRenderer - POD renderer plugin
# Mojolicious $self->plugin('PODRenderer'); $self->plugin(PODRenderer => {name => 'foo'}); $self->plugin(PODRenderer => {preprocess => 'epl'}); $self->render('some_template', handler => 'pod'); %= pod_to_html "=head1 TEST\n\nC<123>" # Mojolicious::Lite plugin 'PODRenderer'; plugin PODRenderer => {name => 'foo'}; plugin PODRenderer => {preprocess => 'epl'}; $self->render('some_template', handler => 'pod'); %= pod_to_html "=head1 TEST\n\nC<123>"
Mojolicious::Plugin::PODRenderer is a renderer for true Perl hackers, rawr!
Mojolicious::Plugin::PODRenderer supports the following options.
name
# Mojolicious::Lite plugin PODRenderer => {name => 'foo'};
Handler name.
no_perldoc
# Mojolicious::Lite plugin PODRenderer => {no_perldoc => 1};
Disable perldoc browser. Note that this option is EXPERIMENTAL and might change without warning!
preprocess
# Mojolicious::Lite plugin PODRenderer => {preprocess => 'epl'};
Handler name of preprocessor.
Mojolicious::Plugin::PODRenderer implements the following helpers.
pod_to_html
%= pod_to_html '=head2 lalala' <%= pod_to_html begin %>=head2 lalala<% end %>
Render POD to HTML.
Mojolicious::Plugin::PODRenderer inherits all methods from Mojolicious::Plugin and implements the following new ones.
register
$plugin->register;
Register renderer in Mojolicious application.
Mojolicious, Mojolicious::Guides, http://mojolicio.us.
To install Mojolicious, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Mojolicious
CPAN shell
perl -MCPAN -e shell install Mojolicious
For more information on module installation, please visit the detailed CPAN module installation guide.