Skip to content

Instantly share code, notes, and snippets.

@hatched
Created January 23, 2013 05:05
Show Gist options
  • Save hatched/4602187 to your computer and use it in GitHub Desktop.
Save hatched/4602187 to your computer and use it in GitHub Desktop.
Requiring a non js file for a module with YUI Loader
YUI({
modules: {
'mytext': {
fullpath: 'mytext.txt'
},
'mymodule': {
fullpath: 'mymodule.js',
requires: 'mytext'
}
}
}).use('mymodule', function(Y) {
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment