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
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
195
7a920771fd8e IMPL::Web::View changed document layout handling, docs, examples
cin
parents: 194
diff changeset
1 [% view.mode = 'default' %]
286
d357b5d85d25 *TTView refactoring
sergey
parents: 195
diff changeset
2 [%
d357b5d85d25 *TTView refactoring
sergey
parents: 195
diff changeset
3 BLOCK INIT;
d357b5d85d25 *TTView refactoring
sergey
parents: 195
diff changeset
4 dojo = { require => [] };
d357b5d85d25 *TTView refactoring
sergey
parents: 195
diff changeset
5 END;
d357b5d85d25 *TTView refactoring
sergey
parents: 195
diff changeset
6 %]
191
78a18a2b6266 IMPL::Web::View improvements (unstable)
cin
parents:
diff changeset
7 <html>
194
4d0e1962161c Replaced tabs with spaces
cin
parents: 191
diff changeset
8 <head>
4d0e1962161c Replaced tabs with spaces
cin
parents: 191
diff changeset
9 <title>$site.name - [% document.title || template.title %]</title>
4d0e1962161c Replaced tabs with spaces
cin
parents: 191
diff changeset
10 [% IF dojo.require.size;
4d0e1962161c Replaced tabs with spaces
cin
parents: 191
diff changeset
11 modules = [];
4d0e1962161c Replaced tabs with spaces
cin
parents: 191
diff changeset
12 modules.push('"' _ item _ '"') FOREACH item IN dojo.require.unique();
4d0e1962161c Replaced tabs with spaces
cin
parents: 191
diff changeset
13 %]
4d0e1962161c Replaced tabs with spaces
cin
parents: 191
diff changeset
14 <script type="text/javascript">
4d0e1962161c Replaced tabs with spaces
cin
parents: 191
diff changeset
15 require([ [% modules.join(', ') %] ]);
4d0e1962161c Replaced tabs with spaces
cin
parents: 191
diff changeset
16 </script>
4d0e1962161c Replaced tabs with spaces
cin
parents: 191
diff changeset
17 [% END %]
4d0e1962161c Replaced tabs with spaces
cin
parents: 191
diff changeset
18 </head>
4d0e1962161c Replaced tabs with spaces
cin
parents: 191
diff changeset
19 <body>
4d0e1962161c Replaced tabs with spaces
cin
parents: 191
diff changeset
20 [% content %]
4d0e1962161c Replaced tabs with spaces
cin
parents: 191
diff changeset
21 </body>
191
78a18a2b6266 IMPL::Web::View improvements (unstable)
cin
parents:
diff changeset
22 </html>