diff view/layout/dojo.tt @ 11:573272ec604b

almost comlete doxygen library
author sergey
date Thu, 15 May 2014 18:24:02 +0400
parents 7d92a42f8e18
children
line wrap: on
line diff
--- a/view/layout/dojo.tt	Thu May 15 01:51:42 2014 +0400
+++ b/view/layout/dojo.tt	Thu May 15 18:24:02 2014 +0400
@@ -1,15 +1,20 @@
-[%
-	modules = document.dojo.modules.unique;
+[% IF document.dojo.enable || document.dojo.modules.size;
+	IF document.dojo.config.parseOnLoad;
+		document.dojo.modules.push('dojo/parser');
+	END;
+	mods = 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.class.push('tundra'); 
+    
+	document.css.unshift(dojo.css);
+	document.css.unshift(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) _ ");"});
+	IF mods.size;
+		document.scripts.push({ text = "require(" _ toJSON(mods) _ ");"});
 	END;
-%]
\ No newline at end of file
+END %]
\ No newline at end of file