Last active
March 11, 2016 17:14
-
-
Save julesbou/e4da8c7f5a21f7c1015a to your computer and use it in GitHub Desktop.
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
// underscorejs version | |
Backbone.View.prototype.template = function(tmpl, params) { | |
return _.template(tmpl, params); | |
}; | |
// handlebars version | |
Backbone.View.prototype.template = function(tmpl, params) { | |
return tmpl(params); | |
}; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment