Linux and UNIX Man Pages

Linux & Unix Commands - Search Man Pages

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

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

NAME
Mojolicious::Plugin::Mount - Application mount plugin SYNOPSIS
# Mojolicious my $route = $self->plugin(Mount => {'/prefix' => '/home/sri/myapp.pl'}); # Mojolicious::Lite my $route = plugin Mount => {'/prefix' => '/home/sri/myapp.pl'}; # Adjust the generated route my $example = plugin Mount => {'/example' => '/home/sri/example.pl'}; $example->to(message => 'It works great!'); # Mount application with host plugin Mount => {'mojolicio.us' => '/home/sri/myapp.pl'}; # Host and path plugin Mount => {'mojolicio.us/myapp' => '/home/sri/myapp.pl'}; # Or even hosts with wildcard subdomains plugin Mount => {'*.mojolicio.us/myapp' => '/home/sri/myapp.pl'}; DESCRIPTION
Mojolicious::Plugin::Mount is a plugin that allows you to mount whole Mojolicious applications. The code of this plugin is a good example for learning to build new plugins, you're welcome to fork it. METHODS
Mojolicious::Plugin::Mount inherits all methods from Mojolicious::Plugin and implements the following new ones. "register" my $route = $plugin->register($app, $conf); Mount Mojolicious application. SEE ALSO
Mojolicious, Mojolicious::Guides, <http://mojolicio.us>. perl v5.14.2 2012-09-05 Mojolicious::Plugin::Mount(3pm)

Check Out this Related 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)
Man Page