diff _test/Resources/TTView/complex.tt @ 287:2d253e6e4a88

*TTView refactoring
author cin
date Tue, 19 Feb 2013 03:05:10 +0400
parents b8c724f6de36
children 3a9cfea098dd
line wrap: on
line diff
--- a/_test/Resources/TTView/complex.tt	Mon Feb 18 14:46:06 2013 +0400
+++ b/_test/Resources/TTView/complex.tt	Tue Feb 19 03:05:10 2013 +0400
@@ -1,12 +1,11 @@
 [%
     META version = 1, title = "my document 2", layout="default";
 
-    BLOCK CTOR;
-        TPanel = require('My/Org/Panel');
-        this.childNodes = [ TPanel.new('information', data = data ) ];
-    END;
+    TPanel = require('My/Org/Panel');
+    this.childNodes = [ TPanel.new('information', data = data ) ];
 
 %]
+
 [% FOREACH node IN this.childNodes() %]
 	<div>[% node.Render() %]</div>
 [% END %]