45 lines
931 B
HTML
45 lines
931 B
HTML
<!DOCTYPE html>
|
|
<html>
|
|
|
|
<head>
|
|
<title>Dojo App</title>
|
|
<meta charset="utf-8" />
|
|
|
|
<!--dojoConfig-->
|
|
<script>
|
|
var dojoConfig = {
|
|
parseOnLoad: true,
|
|
async: true,
|
|
cacheBust: true, // Get "fresh" resources,
|
|
baseUrl: "/app",
|
|
packages: [
|
|
{name: "dojo", location: "/node_modules/dojo"},
|
|
{name: "dojox", location: "/node_modules/dojox"},
|
|
{name: "dijit", location: "/node_modules/dijit"},
|
|
]
|
|
};
|
|
</script>
|
|
|
|
<!--load dojo toolkit-->
|
|
<script src="/node_modules/dojo/dojo.js"></script>
|
|
|
|
<script>
|
|
require([
|
|
"dojo/dom",
|
|
"app/widgets/MainWidget.js",
|
|
"dojo/domReady!"
|
|
], function (dom, MainWidget) {
|
|
var greeting = dom.byId('root');
|
|
var widget = new MainWidget();
|
|
widget.placeAt(greeting);
|
|
widget.startup();
|
|
});
|
|
</script>
|
|
|
|
</head>
|
|
|
|
<body>
|
|
<div id="root"></div>
|
|
</body>
|
|
|
|
</html> |