Created
November 25, 2012 10:08
-
-
Save dumindu/4142974 to your computer and use it in GitHub Desktop.
Backbone + Handlebars + backbone.layoutmanager
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() { | |
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