MojoX::Dispatcher::Routes - Routes Dispatcher
use MojoX::Dispatcher::Routes; my $dispatcher = MojoX::Dispatcher::Routes->new;
MojoX::Dispatcher::Routes is a dispatcher based on MojoX::Routes.
MojoX::Dispatcher::Routes inherits all attributes from MojoX::Routes and implements the follwing the ones.
controllers
my $controllers = $dispatcher->controllers; $dispatcher = $dispatcher->controllers({ ... });
namespace
my $namespace = $dispatcher->namespace; $dispatcher = $dispatcher->namespace('Foo::Bar::Controller');
MojoX::Dispatcher::Routes inherits all methods from MojoX::Routes and implements the follwing the ones.
dispatch
$dispatcher = $dispatcher->dispatch( MojoX::Dispatcher::Routes::Context->new );
To install Mojo, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Mojo
CPAN shell
perl -MCPAN -e shell install Mojo
For more information on module installation, please visit the detailed CPAN module installation guide.