Mojolicious::Plugin::Mount - Application mount plugin
# Mojolicious $self->plugin(Mount => {'/prefix' => '/home/sri/myapp.pl'}); # Mojolicious::Lite 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'};
Mojolicious::Plugin::Mount is a plugin that allows you to mount whole Mojolicious applications. Note that this module is EXPERIMENTAL and might change without warning!
Mojolicious::Plugin::Mount inherits all methods from Mojolicious::Plugin and implements the following new ones.
register
$plugin->register;
Mount 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.