Skip to content

Instantly share code, notes, and snippets.

@DimitarChristoff
Created May 30, 2012 09:49
Show Gist options
  • Save DimitarChristoff/2835214 to your computer and use it in GitHub Desktop.
Save DimitarChristoff/2835214 to your computer and use it in GitHub Desktop.
poor man's AMD and mootools
require.config({
baseUrl: 'scripts/',
paths: {
'text': 'lib/text',
'mustache': 'lib/mustache',
'mootools': 'lib/mootools-core',
'mootools-more': 'lib/mootools-more',
'router': 'lib/router',
'breadcrumb': 'modules/breadcrumb',
'settings': 'modules/settings',
'storage': 'modules/storage',
'qs-controller': 'modules/controllers/qs-controller',
'validators': 'modules/validators'
},
shim: {
'mootools': {
exports: 'MooTools'
},
'mootools-more': {
deps: ['mootools'],
exports: 'MooTools.More'
},
'mustache': {
exports: 'Mustache'
}
},
deps: ['modules/libs', 'modules/core', 'modules/templates', 'modules/types'],
urlArgs: 'bust=' + (new Date()).getTime()
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment