Mercurial > pub > Impl
annotate _test/Resources/TTView/Layout/default.tt @ 323:b56b1ec33b59
minor changes to support JSON in transformation from a query to an object
author | sergey |
---|---|
date | Thu, 23 May 2013 18:40:26 +0400 |
parents | d357b5d85d25 |
children |
rev | line source |
---|---|
195
7a920771fd8e
IMPL::Web::View changed document layout handling, docs, examples
cin
parents:
194
diff
changeset
|
1 [% view.mode = 'default' %] |
286 | 2 [% |
3 BLOCK INIT; | |
4 dojo = { require => [] }; | |
5 END; | |
6 %] | |
191 | 7 <html> |
194 | 8 <head> |
9 <title>$site.name - [% document.title || template.title %]</title> | |
10 [% IF dojo.require.size; | |
11 modules = []; | |
12 modules.push('"' _ item _ '"') FOREACH item IN dojo.require.unique(); | |
13 %] | |
14 <script type="text/javascript"> | |
15 require([ [% modules.join(', ') %] ]); | |
16 </script> | |
17 [% END %] | |
18 </head> | |
19 <body> | |
20 [% content %] | |
21 </body> | |
191 | 22 </html> |