Create a gist now

Instantly share code, notes, and snippets.

What would you like to do?
JavaScript養成読本 特集1 第7章 リスト5 訂正
// js/note_detail.js
App.NoteDetailView = Backbone.View.extend({
render: function() {
var template = $('#noteDetailView-template').html();
var compiled = _.template(template);
var html = compiled(this.model.toJSON());
this.$el.html(html);
return this;
}
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment