diff view/layout/dojo.tt @ 8:7d92a42f8e18

improved doxygen library
author sergey
date Wed, 14 May 2014 17:28:22 +0400
parents
children 573272ec604b
line wrap: on
line diff
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/view/layout/dojo.tt	Wed May 14 17:28:22 2014 +0400
@@ -0,0 +1,15 @@
+[%
+	modules = document.dojo.modules.unique;
+	style = document.dojo.style || 'tundra';
+	dojo.js = cdn.dojo.SetView('js').dojo.dojo;
+    dijit.css = cdn.dojo.dijit.themes.${style}.${style}.SetView('css');
+    dojo.css = cdn.dojo.dojo.resources.dojo.SetView('css');
+    
+	document.css.push(dojo.css);
+	document.css.push(dijit.css);
+	document.scripts.push({ text = 'dojoConfig = ' _ toJSON(document.dojo.config) _ ';' });
+	document.scripts.push({ src = dojo.js });
+	IF modules.size;
+		document.scripts.push({ text = "require(" _ toJSON(modules) _ ");"});
+	END;
+%]
\ No newline at end of file