multiuse.html revision 344be5ef8d439ed67340cce47cdf334300aa4e64
<html><head>
<meta http-equiv="content-type" content="text/html; charset=ISO-8859-1">
<title>Test</title>
<!-- <script src="http://yui.yahooapis.com/3.0.0b1/build/yui/yui-min.js" type="text/javascript"></script> -->
<script src="/build/yui/yui-debug.js"></script>
<script src="/build/loader/loader-debug.js"></script>
<script>
YUI.add('lib1', function (Y) {
Y.lib1 = true;
}, '@VERSION@');
YUI({
modules: {
lib2: {
requires: ['yui'],
fullpath: 'js/lib2.js'
},
lib3: {
requires: ['yui'],
fullpath: 'js/lib3.js'
}
}
}).use('lib1', function (Y) {
Y.use('lib2', function (Y) {
Y.log("lib2: " + Y.lib2);
});
Y.use('lib3', function (Y) {
Y.log("lib3: " + Y.lib3);
});
});
</script>
</body></html>