Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/motemen/perl5-router-simple-reversible
Router::Simple equipped with reverse routing
https://github.com/motemen/perl5-router-simple-reversible
Last synced: 3 months ago
JSON representation
Router::Simple equipped with reverse routing
- Host: GitHub
- URL: https://github.com/motemen/perl5-router-simple-reversible
- Owner: motemen
- License: other
- Created: 2015-08-12T06:21:01.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2021-02-05T03:35:31.000Z (almost 4 years ago)
- Last Synced: 2024-05-01T23:31:26.502Z (9 months ago)
- Language: Perl
- Size: 12.7 KB
- Stars: 4
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: Changes
- License: LICENSE
Awesome Lists containing this project
README
# 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](https://metacpan.org/pod/Router%3A%3ASimple)
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