Created
December 5, 2013 16:41
-
-
Save oak-tree/7808800 to your computer and use it in GitHub Desktop.
regular_template_manager_use
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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