NAME

Pickles::Dispatcher - Dispatcher Object

SYNOPSIS

# in MyApp::Controller::Foo
package MyApp::Controller::Foo;
use base qw(Pickles::Controller);

sub index {
    my ($self, $c) = @_;
    ....
}

# etc/routes.pl
# Router::Simple::Declare is implicitly imported into the current
# scope, so you can use it's methods right away
router {
    connect '/' =>
        { controller => 'Foo', action => 'index' }
};

DESCRIPTION

Pickles::Dispatcher uses Router::Simple to route your requests. Unlike frameworks like Catalyst, the mapping between URI and Controller actions are separated out to an external file (etc/routes.pl by default)

METHODS

If you are an application developer, you should not need to touch these directly.

new

router

match