|
NAMERouter::Simple::Declare - declarative interface for Router::Simple SYNOPSIS 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');
DESCRIPTIONEasy way to declare router object. USAGElook the SYNOPSIS.see Router::Simple for more details. FUNCTIONSSEE ALSORouter::Simple
|