Sebastian Riedel > Mojo > MojoX::Dispatcher::Routes

Download:
Mojo-0.9002.tar.gz

Dependencies

Annotate this POD

CPAN RT

Open  0
Report a bug
Source   Latest Release: Mojo-0.999912

NAME ^

MojoX::Dispatcher::Routes - Routes Dispatcher

SYNOPSIS ^

    use MojoX::Dispatcher::Routes;

    my $dispatcher = MojoX::Dispatcher::Routes->new;

DESCRIPTION ^

MojoX::Dispatcher::Routes is a dispatcher based on MojoX::Routes.

ATTRIBUTES

MojoX::Dispatcher::Routes inherits all attributes from MojoX::Routes and implements the follwing the ones.

disallow

    my $disallow = $dispatcher->disallow;
    $dispatcher  = $dispatcher->disallow(
        [qw/new attr ctx render req res stash/]
    );

namespace

    my $namespace = $dispatcher->namespace;
    $dispatcher   = $dispatcher->namespace('Foo::Bar::Controller');

METHODS ^

MojoX::Dispatcher::Routes inherits all methods from MojoX::Routes and implements the follwing the ones.

dispatch

    my $success = $dispatcher->dispatch(
        MojoX::Dispatcher::Routes::Context->new
    );
    my $success = $dispatcher->dispatch(
        MojoX::Dispatcher::Routes::Context->new,
        MojoX::Routes::Match->new
    );