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.
by
1 Reply