Created
January 25, 2011 14:52
-
-
Save parente/795008 to your computer and use it in GitHub Desktop.
playing with requirejs + Dojo 1.5 XD
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!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> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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