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

*TTView refactoring
author cin
date Tue, 19 Feb 2013 03:05:10 +0400
parents b8c724f6de36
children 3a9cfea098dd
comparison
equal deleted inserted replaced
286:d357b5d85d25 287:2d253e6e4a88
1 [% 1 [%
2 META version = 1, title = "my document 2", layout="default"; 2 META version = 1, title = "my document 2", layout="default";
3 3
4 BLOCK CTOR; 4 TPanel = require('My/Org/Panel');
5 TPanel = require('My/Org/Panel'); 5 this.childNodes = [ TPanel.new('information', data = data ) ];
6 this.childNodes = [ TPanel.new('information', data = data ) ];
7 END;
8 6
9 %] 7 %]
8
10 [% FOREACH node IN this.childNodes() %] 9 [% FOREACH node IN this.childNodes() %]
11 <div>[% node.Render() %]</div> 10 <div>[% node.Render() %]</div>
12 [% END %] 11 [% END %]