justinfagnani / route

A client + server routing library for Dart
BSD 3-Clause "New" or "Revised" License
114 stars 40 forks source link

Implement a RFC 6570 compliant UriTemplate #26

Open justinfagnani opened 11 years ago

justinfagnani commented 11 years ago

It seems like it might a good idea to use a standard URI template syntax rather than one of the many ad-hoc syntaxes, including route's UriPattern.

http://tools.ietf.org/html/rfc6570

The spec is focused on URI expansion and vague about variable extraction, so we'll have to add some validation to ensure templates are reversible.

adambender commented 11 years ago

Do you want this both on the client and the server? The server's matching is pretty basic right now, this would allow for some very interesting possibilities including automatic parameter extraction for the handler.