1Router::Simple::DeclareU(s3e)r Contributed Perl DocumentaRtoiuotner::Simple::Declare(3)
2
3
4

NAME

6       Router::Simple::Declare - declarative interface for Router::Simple
7

SYNOPSIS

9           use Router::Simple::Declare;
10
11           my $router = router {
12               connect '/{controller}/{action}/{id}';
13
14               submapper('/account', {controller => 'Account'})
15                   ->connect('/login', {action => 'login'})
16                   ->connect('/logout', {action => 'logout'});
17           };
18           $router->match('/entry/show/3');
19

DESCRIPTION

21       Easy way to declare router object.
22

USAGE

24       look the SYNOPSIS.see Router::Simple for more details.
25

FUNCTIONS

27       router
28       connect
29       submapper
30

SEE ALSO

32       Router::Simple
33
34
35
36perl v5.30.0                      2019-07-26        Router::Simple::Declare(3)
Impressum