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

Mojolicious::Plugin::Mount


НАЗВАНИЕ

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.