I am looking for a template solution that can work on both server side (like ERB) and client side (like EJS) so I don't have to write the views twice for use in, say, both Rails and Backbone. The first that comes to mind is Mustache. Anyone doing this successfully ?