Created
November 29, 2012 10:29
-
-
Save kjelelokk/4168072 to your computer and use it in GitHub Desktop.
Dojo template index 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
<!DOCTYPE HTML> | |
<html> | |
<head> | |
<meta charset="utf-8" /> | |
<title>Dojo test</title> | |
<link rel="stylesheet" href="//ajax.googleapis.com/ajax/libs/dojo/1.8.1/dijit/themes/claro/claro.css"> | |
<script src="//ajax.googleapis.com/ajax/libs/dojo/1.8.1/dojo/dojo.js" data-dojo-config="isDebug: true, async: true, parseOnLoad: true"></script> | |
</head> | |
<body class="claro"> | |
<h1>This is a template test:</h1> | |
<div data-dojo-type="myWidget">myWidget goes here</div> | |
<script> | |
/* Ikke bry deg om conf-objektet. Det sier bare hvor Dojo ligger på systemet mitt */ | |
var conf = { | |
baseUrl: './js/', | |
packages: [ | |
{ name: "dojo", location: "lib/dojo" }, | |
{ name: "dijit", location: "lib/dijit" }, | |
{ name: "demo", location: "demo" }, | |
{ name: "templates", location: "demo/templates" } | |
] | |
}; | |
require(conf, [ | |
'dojo/parser', | |
'demo/myTemplateModule' | |
], function (parser) { | |
parser.parse(); | |
}); | |
</script> | |
</body> | |
</html> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment