Skip to content

Instantly share code, notes, and snippets.

@oak-tree
Created December 5, 2013 16:41
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save oak-tree/7808800 to your computer and use it in GitHub Desktop.
Save oak-tree/7808800 to your computer and use it in GitHub Desktop.
regular_template_manager_use
render : function(args) {
/*
* using template manager we can allow object use diffrent
* templates.
*/
TemplateManager.get(this.template, function(template,tmArgs) {
that.$el.html(template(that.model.toJSON()));
/* some other calls here */
});
// make sure to call readnRendering in the right context..
return this;
},
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment