Документация Perl 5

Mojolicious::Plugin::PodRenderer


НАЗВАНИЕ

Mojolicious::Plugin::PodRenderer - POD Renderer Plugin

КРАТКИЙ ОБЗОР

    # Mojolicious
    $self->plugin('pod_renderer');
    $self->plugin(pod_renderer => {name => 'foo'});
    $self->plugin(pod_renderer => {preprocess => 'epl'});
    $self->render('some_template', handler => 'pod');
    <%= pod_to_html "=head1 TEST\n\nC<123>" %>
     
    # Mojolicious::Lite
    plugin 'pod_renderer';
    plugin pod_renderer => {name => 'foo'};
    plugin pod_renderer => {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!

OPTIONS

name

    # Mojolicious::Lite
    plugin pod_renderer => {name => 'foo'};

Handler name.

no_perldoc

    # Mojolicious::Lite
    plugin pod_renderer => {no_perldoc => 1};

Disable perldoc browser. Note that this option is EXPERIMENTAL and might change without warning!

preprocess

    # Mojolicious::Lite
    plugin pod_renderer => {preprocess => 'epl'};

Handler name of preprocessor.

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.