Skip to content
New issue

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

Support URI templates in route path spec #26

Open
olegp opened this issue Jan 29, 2012 · 1 comment
Open

Support URI templates in route path spec #26

olegp opened this issue Jan 29, 2012 · 1 comment

Comments

@olegp
Copy link

olegp commented Jan 29, 2012

It would be nice to have the URI template format supported in the route middleware path spec. In other words in addition to "/post/:id" it would be great to also be able to provide "/post/{id}". URI templates seem to be more widely adopted and have the backing of W3C.

@oberhamsi
Copy link
Member

interesting but glancing over the RFC they seem much more complex and not as easy to grasp then the simple templating we took from sinatra & co. e.g.:

     pattern            expansion
   {/count}           /one,two,three
   {/count*}          /one/two/three

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants