view view/layout/dojo.tt @ 10:83ad674a8cdd

updated styles
author sergey
date Thu, 15 May 2014 01:51:42 +0400
parents 7d92a42f8e18
children 573272ec604b
line wrap: on
line source

[%
	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;
%]