Mercurial > pub > site.implab
view view/layout/dojo.tt @ 14:d997ff96acf1
sync
author | sergey |
---|---|
date | Mon, 19 May 2014 18:34:16 +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 %]