Pickles::Dispatcher - Dispatcher Object
# 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' } };
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)
If you are an application developer, you should not need to touch these directly.
To install Pickles, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Pickles
CPAN shell
perl -MCPAN -e shell install Pickles
For more information on module installation, please visit the detailed CPAN module installation guide.