Mercurial > pub > Impl
annotate _test/Resources/TTView/Layout/default.tt @ 307:2da2564f115d
*TTView: fixed memory leak
author | cin |
---|---|
date | Thu, 18 Apr 2013 02:21:28 +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> |