Skip to content

Instantly share code, notes, and snippets.

@phawk
Created December 9, 2012 19:52
Show Gist options
  • Select an option

  • Save phawk/4246722 to your computer and use it in GitHub Desktop.

Select an option

Save phawk/4246722 to your computer and use it in GitHub Desktop.
var app = app || {};
app.views = app.views || {};
app.views.MyView = Backbone.View.extend({
render: function() {
// Use a handlebars template or similar here
var html = "Some html template content here";
this.$el.html(html);
}
});
new app.views.MyView({
el: $('.some-div-container')
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment