Skip to content

Instantly share code, notes, and snippets.

@felipemesquita
Created August 29, 2012 01:44
Show Gist options
  • Save felipemesquita/3505953 to your computer and use it in GitHub Desktop.
Save felipemesquita/3505953 to your computer and use it in GitHub Desktop.
var ProjectView = Backbone.View.extend({
tagName: 'ul',
className: 'projects',
render: function(){
$(this.el).append("<li>" + this.model.title + "</li>");
}
});
var project = new Project({ title: 'Adding a new project' });
var projectView = new ProjectView({ model: project });
projectView.render();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment