d4f / backbone-highway

Routing Backbone with style \o/
MIT License
19 stars 5 forks source link

Improve parameter injection #12

Closed ghost closed 8 years ago

ghost commented 8 years ago

Being able to inject parameters into a complexe path and handling optional parameters.

var args = [42];
var url = '/users/u:id(/edit/:context)';

Backbone.Highway._parse(url, args) === '/users/u42';