diff _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
line wrap: on
line diff
--- a/_test/Resources/view/layout/header.tt	Mon Oct 07 17:35:54 2013 +0400
+++ b/_test/Resources/view/layout/header.tt	Tue Oct 08 17:40:35 2013 +0400
@@ -2,5 +2,18 @@
 <html>
 <head>
 <title>$document.title</title>
+<script>
+    [%
+        IF document.dojo.modules.size;
+            modules = [];
+            FOREACH module IN document.dojo.modules.unique;
+                modules.push('"' _ module _ '"');
+            END;
+    %]
+            require([ [% modules.join(', ') %] ]);
+    [%
+        END;
+    %]
+</script>
 </head>
 <body>
\ No newline at end of file