Skip to content

Commit

Permalink
a few more examples for the PODRenderer plugin
Browse files Browse the repository at this point in the history
  • Loading branch information
kraih committed Jan 1, 2015
1 parent bcc7c48 commit fa5e296
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions lib/Mojolicious/Plugin/PODRenderer.pm
Expand Up @@ -112,19 +112,25 @@ Mojolicious::Plugin::PODRenderer - POD renderer plugin
=head1 SYNOPSIS
# Mojolicious
# Mojolicious (with documentation browser under "/perldoc")
my $route = $self->plugin('PODRenderer');
my $route = $self->plugin(PODRenderer => {name => 'foo'});
my $route = $self->plugin(PODRenderer => {preprocess => 'epl'});
# Mojolicious::Lite
# Mojolicious::Lite (with documentation browser under "/perldoc")
my $route = plugin 'PODRenderer';
my $route = plugin PODRenderer => {name => 'foo'};
my $route = plugin PODRenderer => {preprocess => 'epl'};
# Without documentation browser
plugin PODRenderer => {no_perldoc => 1};
# foo.html.ep
%= pod_to_html "=head1 TEST\n\nC<123>"
# foo.html.pod
=head1 <%= uc 'test' %>
=head1 DESCRIPTION
L<Mojolicious::Plugin::PODRenderer> is a renderer for true Perl hackers, rawr!
Expand Down

0 comments on commit fa5e296

Please sign in to comment.