We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
By defining
map.get('/test/:p1?', 'home#test');
When I use path_to
map.pathTo.test() // I get '' map.pathTo.test('param1') // I get '/test/param1?'
A cool feature would be to declare route parameters like that :
map.get('/test/:p1/:p2?', 'home#test');
And to map them like that :
map.pathTo.test({p1 : 'param1', p2 : 'param2'})
Anyway thanks for this very nice piece of code
The text was updated successfully, but these errors were encountered:
Write test to confirm case #16
d6600fe
Fix optional params handling, as per #16
9e3378a
e808060
Update readme #16
4d26574
Thanks for spotting issue and nice api suggestion. Everything available in updated npm package (v0.0.8-4)
Sorry, something went wrong.
No branches or pull requests
By defining
When I use path_to
A cool feature would be to declare route parameters like that :
And to map them like that :
Anyway thanks for this very nice piece of code
The text was updated successfully, but these errors were encountered: