ramiel / router.js

Router.js is a simple and powerful javascript library to handle routing
116 stars 21 forks source link

knockout.js sample #2

Closed villanus closed 10 years ago

villanus commented 10 years ago

im curious if this can work well with knockout. also a comparison to sammy would be great

ramiel commented 10 years ago

Hi, router.js works well with knockout. We use them in production. You can watch a video from our customers of a software which uses knockout and router.js in the frontend part: http://youtu.be/onMuIOySY0A Router.js orchestrate routing while knockout changes template and bind data (it's a bit more complex then this but...) Again mobile version of this website (http://web.piuss.hyperborea.com/) uses knockout and router.js.

In the medical project we used Sammy at the beginning and we wrote router.js because Sammy didn't fit enough. You can't stop sammy temporary (for this reason there is pause method in router) and we don't need the router application to handle our forms the way Sammy does. We want something which just handle location changings. Even absence of pre-route-matching handling in Sammy was a problem to us. anyway, if you need form control, verb-driven behaviours, template handling and so on, Samy it's better for you.