d4f / backbone-highway

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

Support multiple parameters in a single URL component #16

Closed ghost closed 8 years ago

ghost commented 8 years ago

When defining a route with the name users and the path : /users/:id/:action-:section

Navigating to it should work like this :

// Navigate to /users/42/edit-profile
Backbone.Highway.go('users', [42, 'edit', 'profile']); // or
Backbone.Highway.go({ path: '/users/42/edit-profile' });