Router::Simple::SubMapper
submapper
- Provided by: librouter-simple-perl (Version: 0.17-1)
- Report a bug
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