Mercurial > pub > site.implab
view view/layout/dojo.tt @ 16:e69c970c3ddd default tip
sync
author | sergey |
---|---|
date | Tue, 20 May 2014 01:28:48 +0400 |
parents | 573272ec604b |
children |
line wrap: on
line source
[% 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.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 mods.size; document.scripts.push({ text = "require(" _ toJSON(mods) _ ");"}); END; END %]