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
{{ message }}
This repository has been archived by the owner on Mar 26, 2018. It is now read-only.
I created a new app using backbone-generator with --template-framework=mustache, then generated a view and tried to render it:
yo backbone cats --template-framework=mustache
yo backbone:view CatView
I changed the definition of render so that it doesn't try to look at a model, and removed the call to listen to the model in initialize, so I wouldn't need a model for this issue report. Now render is just:
In main.js, I created a single CatView and tried to render it:
var catView = new Cats.Views.CatView({ el: '#theCat' });
catView.render();
This fails, because this.template is just a string, not a function, so it can't be called.
I think we just need to add a call to Mustache.render; I'll see if I can get this fixed.
The text was updated successfully, but these errors were encountered:
I created a new app using backbone-generator with
--template-framework=mustache
, then generated a view and tried to render it:yo backbone cats --template-framework=mustache
yo backbone:view CatView
I changed the definition of render so that it doesn't try to look at a model, and removed the call to listen to the model in initialize, so I wouldn't need a model for this issue report. Now render is just:
In main.js, I created a single CatView and tried to render it:
This fails, because this.template is just a string, not a function, so it can't be called.
I think we just need to add a call to Mustache.render; I'll see if I can get this fixed.
The text was updated successfully, but these errors were encountered: