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.
controller_base_class
my $base = $dispatcher->controller_base_class; $dispatcher = $dispatcher->controller_base_class( 'MojoX::Dispatcher::Routes::Controller' );
hidden
my $hidden = $dispatcher->hidden; $dispatcher = $dispatcher->hidden( [qw/new attr tx render req res stash/] );
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
my $e = $dispatcher->dispatch( MojoX::Dispatcher::Routes::Controller->new );
dispatch_callback
my $e = $dispatcher->dispatch_callback($c);
dispatch_controller
my $e = $dispatcher->dispatch_controller($c);
generate_class
my $class = $dispatcher->generate_class($c);
generate_method
my $method = $dispatcher->genrate_method($c);
hide
$dispatcher = $dispatcher->hide('new');
render
$dispatcher->render($c);
walk_stack
my $e = $dispatcher->walk_stack($c);
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.