MATSUNO★Tokuhiro > Router-Simple-0.09 > Router::Simple::Declare

Download:
Router-Simple-0.09.tar.gz

Dependencies

Annotate this POD

View/Report Bugs
Source   Latest Release: Router-Simple-0.15

NAME ^

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

SYNOPSIS ^

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

DESCRIPTION ^

Easy way to declare router object.

USAGE ^

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

FUNCTIONS ^

router
connect
submapper

SEE ALSO ^

Router::Simple

syntax highlighting: