Skip to content

Instantly share code, notes, and snippets.

@parente
Created January 25, 2011 14:52
Show Gist options
  • Save parente/795008 to your computer and use it in GitHub Desktop.
Save parente/795008 to your computer and use it in GitHub Desktop.
playing with requirejs + Dojo 1.5 XD
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8" />
<title>RequireJS + Dojo XD sandbox</title>
<style type="text/css">
@import "http://ajax.googleapis.com/ajax/libs/dojo/1.5/dojo/resources/dojo.css";
@import "http://ajax.googleapis.com/ajax/libs/dojo/1.5/dijit/themes/claro/claro.css";
</style>
<script data-main="main" src="js/require.js"></script>
</head>
<body class="claro">
<button id="testButton" dojoType="dijit.form.Button">Am I a Dijit?</button>
</body>
</html>
var djConfig = {parseOnLoad : true, isDebug : false};
require([
'http://ajax.googleapis.com/ajax/libs/dojo/1.5/dojo/dojo.xd.js'
], function() {
dojo.require('dijit.form.Button');
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment