Skip to content

Instantly share code, notes, and snippets.

@weotch
Created April 29, 2013 23:03
Show Gist options
  • Save weotch/5485518 to your computer and use it in GitHub Desktop.
Save weotch/5485518 to your computer and use it in GitHub Desktop.
Basic view creation
// Generates the gallery on the home page and allows
// user to paginate
define(function(require) {
// Dependencies
var $ = require('jquery'),
_ = require('underscore'),
Backbone = require('backbone');
// Init view
var View = {
};
// Constructor
// Return the view
return Backbone.View.extend(View);
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment