Mercurial > pub > site.implab
view view/layout/dojo.tt @ 12:d9551c7e7101
improved dox library
author | sergey |
---|---|
date | Fri, 16 May 2014 16:47:50 +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 %]