Skip to content

Instantly share code, notes, and snippets.

@weotch
Created October 14, 2013 21:31
Show Gist options
  • Save weotch/6982564 to your computer and use it in GitHub Desktop.
Save weotch/6982564 to your computer and use it in GitHub Desktop.
Backbone view template
define(function (require) {
// Dependencies
var $ = require('jquery')
, _ = require('underscore')
, Backbone = require('backbone')
;
// Setup view
var View = {};
View.initialize = function() {
_.bindAll(this);
// Cache
};
// Return view class
return Backbone.View.extend(View);
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment