-
-
05 Feb 2021 03:35:55 UTC
- Distribution: Router-Simple-Reversible
- Module version: 0.02
- Source (raw)
- Browse (raw)
- Changes
- Homepage
- How to Contribute
- Repository
- Issues
- Testers (78 / 0 / 0)
- Kwalitee
Bus factor: 1- 96.00% Coverage
- License: perl_5
- Perl: v5.8.1
- Activity
24 month- Tools
- Download (9.31KB)
- MetaCPAN Explorer
- Permissions
- Subscribe to distribution
- Permalinks
- This version
- Latest version
NAME
Router::Simple::Reversible - Router::Simple equipped with reverse routing
SYNOPSIS
use Router::Simple::Reversible; my $router = Router::Simple::Reversible->new; # Same as Router::Simple $router->connect('/blog/{year}/{month}', {controller => 'Blog', action => 'monthly'}); $router->path_for({ controller => 'Blog', action => 'monthly' }, { year => 2015, month => 10 }); # => '/blog/2015/10'
DESCRIPTION
Router::Simple::Reversible inherits Router::Simple and provides
path_for
method which produces a string from routing destination and path parameters given.LICENSE
Copyright (C) motemen.
This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
AUTHOR
motemen <motemen@gmail.com>
Module Install Instructions
To install Router::Simple::Reversible, copy and paste the appropriate command in to your terminal.
cpanm Router::Simple::Reversible
perl -MCPAN -e shell install Router::Simple::Reversible
For more information on module installation, please visit the detailed CPAN module installation guide.