Router::Simple::Declare - declarative interface for Router::Simple
use Router::Simple::Declare; my $router = router { connect '/{controller}/{action}/{id}'; submapper('/account', {controller => 'Account'}) ->connect('/login', {action => 'login'}) ->connect('/logout', {action => 'logout'}); }; $router->match('/entry/show/3');
Easy way to declare router object.
look the SYNOPSIS.see Router::Simple for more details.
Router::Simple
To install Router::Simple, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Router::Simple
CPAN shell
perl -MCPAN -e shell install Router::Simple
For more information on module installation, please visit the detailed CPAN module installation guide.