Linux and UNIX Man Pages

Linux & Unix Commands - Search Man Pages

mojolicious::plugin::podrenderer(3pm) [debian man page]

Mojolicious::Plugin::PODRenderer(3pm)			User Contributed Perl Documentation		     Mojolicious::Plugin::PODRenderer(3pm)

NAME
Mojolicious::Plugin::PODRenderer - POD renderer plugin SYNOPSIS
# Mojolicious my $route = $self->plugin('PODRenderer'); my $route = $self->plugin(PODRenderer => {name => 'foo'}); my $route = $self->plugin(PODRenderer => {preprocess => 'epl'}); $self->render('some_template', handler => 'pod'); %= pod_to_html "=head1 TEST C<123>" # Mojolicious::Lite my $route = plugin 'PODRenderer'; my $route = plugin PODRenderer => {name => 'foo'}; my $route = plugin PODRenderer => {preprocess => 'epl'}; $self->render('some_template', handler => 'pod'); %= pod_to_html "=head1 TEST C<123>" DESCRIPTION
Mojolicious::Plugin::PODRenderer is a renderer for true Perl hackers, rawr! The code of this plugin is a good example for learning to build new plugins, you're welcome to fork it. OPTIONS
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. "preprocess" # Mojolicious::Lite plugin PODRenderer => {preprocess => 'epl'}; Name of handler used to preprocess POD. HELPERS
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. METHODS
Mojolicious::Plugin::PODRenderer inherits all methods from Mojolicious::Plugin and implements the following new ones. "register" my $route = $plugin->register($app, $conf); Register renderer in Mojolicious application. SEE ALSO
Mojolicious, Mojolicious::Guides, <http://mojolicio.us>. perl v5.14.2 2012-09-05 Mojolicious::Plugin::PODRenderer(3pm)

Check Out this Related Man Page

Mojolicious::Plugin::DefaultHelpers(3pm)		User Contributed Perl Documentation		  Mojolicious::Plugin::DefaultHelpers(3pm)

NAME
Mojolicious::Plugin::DefaultHelpers - Default helpers plugin SYNOPSIS
# Mojolicious $self->plugin('DefaultHelpers'); # Mojolicious::Lite plugin 'DefaultHelpers'; DESCRIPTION
Mojolicious::Plugin::DefaultHelpers is a collection of renderer helpers for Mojolicious. This is a core plugin, that means it is always enabled and its code a good example for learning to build new plugins, you're welcome to fork it. HELPERS
Mojolicious::Plugin::DefaultHelpers implements the following helpers. "app" %= app->secret Alias for "app" in Mojolicious::Controller. "config" %= config 'something' Alias for "config" in Mojo. "content" %= content foo => begin test % end %= content 'foo' %= content Store content and retrieve it. "content_for" % content_for foo => begin test % end %= content_for 'foo' Append content to named buffer and retrieve it. % content_for message => begin Hello % end % content_for message => begin world! % end %= content_for 'message' "current_route" % if (current_route 'login') { Welcome to Mojolicious! % } %= current_route Check or get name of current route. "dumper" %= dumper {some => 'data'} Dump a Perl data structure using Data::Dumper. "extends" % extends 'blue'; % extends 'blue', title => 'Blue!'; Extend a template, all arguments get merged into the stash. "flash" %= flash 'foo' Alias for "flash" in Mojolicious::Controller. "include" %= include 'menubar' %= include 'menubar', format => 'txt' Include a partial template, all arguments get localized automatically and are only available in the partial template. "layout" % layout 'green'; % layout 'green', title => 'Green!'; Render this template with a layout, all arguments get merged into the stash. "memorize" %= memorize begin %= time % end %= memorize {expires => time + 1} => begin %= time % end %= memorize foo => begin %= time % end %= memorize foo => {expires => time + 1} => begin %= time % end Memorize block result in memory and prevent future execution. "param" %= param 'foo' Alias for "param" in Mojolicious::Controller. "session" %= session 'foo' Alias for "session" in Mojolicious::Controller. "stash" %= stash 'foo' % stash foo => 'bar'; Alias for "stash" in Mojolicious::Controller. "title" % title 'Welcome!'; % title 'Welcome!', foo => 'bar'; %= title Page title, all arguments get merged into the stash. "url_for" %= url_for 'named', controller => 'bar', action => 'baz' Alias for "url_for" in Mojolicious::Controller. "url_with" %= url_with 'named', controller => 'bar', action => 'baz' Does the same as "url_for", but inherits query parameters from the current request. %= url_with->query([page => 2]) METHODS
Mojolicious::Plugin::DefaultHelpers inherits all methods from Mojolicious::Plugin and implements the following new ones. "register" $plugin->register($app); Register helpers in Mojolicious application. SEE ALSO
Mojolicious, Mojolicious::Guides, <http://mojolicio.us>. perl v5.14.2 2012-09-05 Mojolicious::Plugin::DefaultHelpers(3pm)
Man Page