comparison _test/Resources/view/layout/header.tt @ 351:cfd7570c2af2

working on TTView: created TTView class for rendering models
author cin
date Tue, 08 Oct 2013 17:40:35 +0400
parents f356c4894d1b
children
comparison
equal deleted inserted replaced
350:f356c4894d1b 351:cfd7570c2af2
1 <!DOCTYPE HTML> 1 <!DOCTYPE HTML>
2 <html> 2 <html>
3 <head> 3 <head>
4 <title>$document.title</title> 4 <title>$document.title</title>
5 <script>
6 [%
7 IF document.dojo.modules.size;
8 modules = [];
9 FOREACH module IN document.dojo.modules.unique;
10 modules.push('"' _ module _ '"');
11 END;
12 %]
13 require([ [% modules.join(', ') %] ]);
14 [%
15 END;
16 %]
17 </script>
5 </head> 18 </head>
6 <body> 19 <body>