Client-side routing techniques?

Anyone have any best practices used when performing client-side routing with HTML5 pushState in Mojito?

I've been manually configuring the routes with Y.Router inside of a mojit binder, though, and I was wondering if there was a better way to handle something like this, especially when the server-side code and client-side code are very similar (get JSON data from a private REST API, and render into HTML).  

I'm currently sharing models between client and server, and I was hoping to see if there was a way to share routing between client and server too.  The goal would be to do server-side rendering on the first load, and client-side rendering for everything afterwards.  

1 Reply
  • Right now as you have noticed, there is not a prescribed way of doing routing on the client side. We are currently working on integrating YUI's App Framework which will give you what you want, but it is probably a couple months away.

Recent Posts

in Yahoo! Mojito