Skip to content

Instantly share code, notes, and snippets.

@mseeks
Created February 12, 2013 00:03
Show Gist options
  • Save mseeks/4758795 to your computer and use it in GitHub Desktop.
Save mseeks/4758795 to your computer and use it in GitHub Desktop.
requirejs.config({
paths: {
jquery: 'libs/jquery',
plates: 'libs/plates',
director: 'libs/director',
bootstrap: 'libs/bootstrap',
store: 'libs/store',
underscore: 'libs/underscore'
},
shim: {
'bootstrap': {
deps: ['jquery']
},
'director': {
exports: 'Director'
},
'plates': {
exports: 'Plates'
},
'store': {
exports: 'Store'
},
'underscore': {
exports: '_'
}
}
});
require(['jquery', 'router', 'resource', 'presenter'], function($, Router, Resource, Presenter) {
Router.initialize();
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment