Router::Simple::Declare(3pm) | User Contributed Perl Documentation | Router::Simple::Declare(3pm) |
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
2022-11-27 | perl v5.36.0 |