comparison shared_view/includes/dojo/context.tt @ 11:573272ec604b

almost comlete doxygen library
author sergey
date Thu, 15 May 2014 18:24:02 +0400
parents
children
comparison
equal deleted inserted replaced
10:83ad674a8cdd 11:573272ec604b
1 [% META activation = 'singleton' class='Benzin::Web::View::DojoContext';
2
3 JSON = import('JSON');
4 MACRO ToJSON(arg) GET JSON.new.utf8(1).encode(arg);
5
6 theme = this.theme || 'tundra';
7 config = this.config || {};
8 dijitCss = cdn.dojo.dijit.themes.$theme.$theme.SetView('css');
9 dojoCss = cdn.dojo.dojo.resources.dojo.SetView('css');
10 dojoJs = cdn.dojo.Clone.SetView('js');
11 %]
12 <link type="text/css" rel="stylesheet" href="$dojoCss"/>
13 <link type="text/css" rel="stylesheet" href="$dijitCss"/>
14 <script type="text/javascript">
15 var dojoConfig = [% ToJSON(config) %]
16 </script>
17 <script type="text/javascript" src="$dojoJs.dojo.dojo"></script>
18 <script type="text/javascript">
19 [%
20 IF config.parseOnLoad;
21 this.AddJsModule('dojo/parser');
22 END;
23 'require(' _ ToJSON(this.modules) _ ');';
24 +%]
25 </script>