Skip to content

Instantly share code, notes, and snippets.

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 dumindu/4142974 to your computer and use it in GitHub Desktop.
Save dumindu/4142974 to your computer and use it in GitHub Desktop.
Backbone + Handlebars + backbone.layoutmanager
render: function() {
var source = $("#round").html();
var template = Handlebars.compile(source);
var context = JSON.parse(this.model.toJSON);
console.log(context);
var html = template(context);
$(this.el).html(html);
return this;
},
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment