Skip to content

Instantly share code, notes, and snippets.

@monteslu
Last active December 21, 2015 02:08
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save monteslu/6232561 to your computer and use it in GitHub Desktop.
Save monteslu/6232561 to your computer and use it in GitHub Desktop.
loader
<html>
<head>
<script>
dojoConfig = {
baseUrl: './js',
parseOnLoad: false,
defaultDuration:1,
packages: [{
name: "app", //my own stuff
location: "app"
}],
deps: [ ], // And array of modules to load on "boot"
locale: 'en-us'
};
</script>
<script src="http://ajax.googleapis.com/ajax/libs/dojo/1.9.1/dojo/dojo.js"></script>
<script>
require(['dojox/encoding/digests/MD5'],
function(md5){
console.log(md5('Lou'));
}
);
</script>
</head>
<body>
<div id="hello">hi</div>
</body>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment