| Router::Simple::SubMapper(3pm) | User Contributed Perl Documentation | Router::Simple::SubMapper(3pm) |
Router::Simple::SubMapper - submapper
use Router::Simple;
my $router = Router::Simple->new();
my $s = $router->submapper('/entry/{id}', {controller => 'Entry'});
$s->connect('/edit' => {action => 'edit'})
->connect('/show' => {action => 'show'});
Router::Simple::SubMapper is sub-mapper for Router::Simple. This class provides shorthand to create routes, that have common parts.
This method returns $submapper itself for method-chain.
This method returns $submapper itself for method-chain.
Router::Simple
| 2015-06-20 | perl v5.20.2 |