We are creating a hashtag navigation web page. There is a lot of data that comes in JSON, and we use client-side templates (jQuery) to render them. So, what are the options for reusable templates on both the client and server side (Ruby on rails)? Since we would like to be able to retreat to a URL other than hashtag, in which case the server should display the data.
I saw Mustache.js, but it has poor support for iterating (cannot get an index) or nested templates, and haml-js is not an option, because it uses its own tags for loops.
There are also some workarounds using the server side javascript engine, but I'm not sure if this will be a good solution.
Any suggestions? Thanks.
javascript ruby client-side server-side templating
spacevillain
source share