Created
March 31, 2012 06:21
-
-
Save ymichael/2259927 to your computer and use it in GitHub Desktop.
requirejs boilerplate
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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