Skip to content

Instantly share code, notes, and snippets.

@netsuite
Created May 21, 2013 16:17
Show Gist options
  • Save netsuite/5621078 to your computer and use it in GitHub Desktop.
Save netsuite/5621078 to your computer and use it in GitHub Desktop.
js: boilerplate
//Filename: boilerplate.js
define([
// These are path alias that we configured in our bootstrap
'jquery', // lib/jquery/jquery
'underscore', // lib/underscore/underscore
'backbone' // lib/backbone/backbone
], function($, _, Backbone){
// Above we have passed in jQuery, Underscore and Backbone
// They will not be accessible in the global scope
return {};
// What we return here will be used by other modules
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment