Created
January 23, 2012 17:05
-
-
Save stevenpsmith/1664275 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
exercise.ActivityDetailsView = Backbone.View.extend({ | |
//since this template will render inside a div, we don't need to specify a tagname | |
initialize: function() { | |
this.template = _.template($('#activity-details-template').html()); | |
}, | |
render: function() { | |
var container = this.options.viewContainer, | |
activity = this.model, | |
renderedContent = this.template(this.model.toJSON()); | |
container.html(renderedContent); | |
container.trigger('create'); | |
return this; | |
} | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment