http://comments.gmane.org/gmane.comp.web.dojo.devel/16087
<script>
var dojoConfig = (function(){
var base = location.href.split('/');
base.pop();
base = base.join('/');
return {
async: true,
packages: [{
name: "my",
location: base + "/my"
}]
};
})();
</script>
<script src="http://downloads.dojotoolkit.org/release-1.7.0/..."></script>
<script>
require(["my/Foo"], function(Foo){
new Foo();
});
</script>
Using http://formatmysourcecode.blogspot.com/
No comments:
Post a Comment