Skip to content

Instantly share code, notes, and snippets.

@ymichael
Created March 31, 2012 06:21
Show Gist options
  • Save ymichael/2259927 to your computer and use it in GitHub Desktop.
Save ymichael/2259927 to your computer and use it in GitHub Desktop.
requirejs boilerplate
define([
//add dependencies here
'jquery'
, 'underscore'
, 'backbone'
],
function($,_,Backbone){
var obj = {};
//each module returns an object that can then be required by other modules
return obj
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment