You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
if you require mustache.js in your JS files, then you can just do this in your view's render function:
render: function(){this.html(Mustache.to_html("template code as a string {some_attr_on_your_model}",this.model.toJSON()))}
the harder part is writing separate JST mustache templates like backbone is already setup for with EJS. investigate https://github.com/sstephenson/ruby-ejs/ to see how you could do the same for mustache
Is it possible to use mustache for templating in a backbone-rails solution? If so, is there any guidance on how to do that?
The text was updated successfully, but these errors were encountered: