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

almost comlete doxygen library
author sergey
date Thu, 15 May 2014 18:24:02 +0400
parents 7d92a42f8e18
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
11
573272ec604b almost comlete doxygen library
sergey
parents: 8
diff changeset
1 [% IF document.dojo.enable || document.dojo.modules.size;
573272ec604b almost comlete doxygen library
sergey
parents: 8
diff changeset
2 IF document.dojo.config.parseOnLoad;
573272ec604b almost comlete doxygen library
sergey
parents: 8
diff changeset
3 document.dojo.modules.push('dojo/parser');
573272ec604b almost comlete doxygen library
sergey
parents: 8
diff changeset
4 END;
573272ec604b almost comlete doxygen library
sergey
parents: 8
diff changeset
5 mods = document.dojo.modules.unique;
8
7d92a42f8e18 improved doxygen library
sergey
parents:
diff changeset
6 style = document.dojo.style || 'tundra';
7d92a42f8e18 improved doxygen library
sergey
parents:
diff changeset
7 dojo.js = cdn.dojo.SetView('js').dojo.dojo;
7d92a42f8e18 improved doxygen library
sergey
parents:
diff changeset
8 dijit.css = cdn.dojo.dijit.themes.${style}.${style}.SetView('css');
7d92a42f8e18 improved doxygen library
sergey
parents:
diff changeset
9 dojo.css = cdn.dojo.dojo.resources.dojo.SetView('css');
7d92a42f8e18 improved doxygen library
sergey
parents:
diff changeset
10
11
573272ec604b almost comlete doxygen library
sergey
parents: 8
diff changeset
11 document.class.push('tundra');
573272ec604b almost comlete doxygen library
sergey
parents: 8
diff changeset
12
573272ec604b almost comlete doxygen library
sergey
parents: 8
diff changeset
13 document.css.unshift(dojo.css);
573272ec604b almost comlete doxygen library
sergey
parents: 8
diff changeset
14 document.css.unshift(dijit.css);
8
7d92a42f8e18 improved doxygen library
sergey
parents:
diff changeset
15 document.scripts.push({ text = 'dojoConfig = ' _ toJSON(document.dojo.config) _ ';' });
7d92a42f8e18 improved doxygen library
sergey
parents:
diff changeset
16 document.scripts.push({ src = dojo.js });
11
573272ec604b almost comlete doxygen library
sergey
parents: 8
diff changeset
17 IF mods.size;
573272ec604b almost comlete doxygen library
sergey
parents: 8
diff changeset
18 document.scripts.push({ text = "require(" _ toJSON(mods) _ ");"});
8
7d92a42f8e18 improved doxygen library
sergey
parents:
diff changeset
19 END;
11
573272ec604b almost comlete doxygen library
sergey
parents: 8
diff changeset
20 END %]