Skip to content

Instantly share code, notes, and snippets.

@kjelelokk
Created November 29, 2012 10:22
Show Gist options
  • Save kjelelokk/4168036 to your computer and use it in GitHub Desktop.
Save kjelelokk/4168036 to your computer and use it in GitHub Desktop.
Dojo require
<html>
...
<div data-dojo-type="myWidget"></div>
<script>
require(
['demo/myWidget',
'dojo/parser',
'dojo/domReady!'],
function (parser) {
parser.parse();
});
</script>
...
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment