Skip to content

Instantly share code, notes, and snippets.

@hkjorgensen
Created June 12, 2012 14:50
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save hkjorgensen/2917982 to your computer and use it in GitHub Desktop.
Save hkjorgensen/2917982 to your computer and use it in GitHub Desktop.
require.config({
paths: {
jQuery: "libs/jquery/jquery-1.7.2.min",
Underscore: "libs/underscore/underscore-1.3.3.min",
Backbone: "libs/backbone/backbone-0.9.2.min"
// Mustache: "libs/mustache/mustache"
},
shim: {
Underscore: {
exports: '_'
},
Backbone: {
deps: ['Underscore', 'jQuery'],
exports: 'Backbone'
}
}
});
require([
'Backbone'
], function(B) {
console.log(B.VERSION);
}
);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment