Router::Simple::Declare(3pm)

Router::Simple::Declare3pm

Declarative interface for router::simple

Usage

    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');

Overview

Easy way to declare router object.

Usage

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

Functions

router
connect
submapper

Releases

7 releases since Debian 7 (Wheezy); the text changed 4 times.

  1. 7
  2. 8
  3. 9–10
  4. 11
  5. 12–13

From librouter-simple-perl 0.17-3 in Debian 13 (Trixie). Parsed by carta from the page's man source.