stick icon indicating copy to clipboard operation
stick copied to clipboard

Support URI templates in route path spec

Open olegp opened this issue 13 years ago • 1 comments

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.

olegp avatar Jan 29 '12 01:01 olegp

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

oberhamsi avatar May 08 '13 17:05 oberhamsi