submoduleswithoutloader.html revision 344be5ef8d439ed67340cce47cdf334300aa4e64
<html debug="true">
<head>
<title>use('gallery-')</title>
YUI.add("myapp-base", function(Y){
Y.MyApplication = function () {};
// Class definition
//...
};
}, "3.0.0b1", {requires:["node"]});
// Submodule definition
YUI.add("myapp-submodule", function(Y){
//...
}, "3.0.0b1", {requires:["myapp-base"]});
// Rollup definition
YUI.add("myapp", function(Y){}, "3.0.0b1", {use: ["myapp-base", "myapp-submodule"]});
// YUI().use('myapp-base', function(Y) {
YUI().use('myapp-submodule', function(Y) {
});
</script>
<body>
</body>
</html>