comparison _test/Resources/TTView/complex.tt @ 238:b8c724f6de36

DOM model refactoring TT view refactoring, controls are no longer derived from DOM nodes bugfixes
author sergey
date Tue, 16 Oct 2012 01:33:06 +0400
parents 7a920771fd8e
children 2d253e6e4a88
comparison
equal deleted inserted replaced
237:61db68166c37 238:b8c724f6de36
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 BLOCK CTOR;
5 TPanel = require('My/Org/Panel'); 5 TPanel = require('My/Org/Panel');
6 append( TPanel.new('information', data = data ) ); 6 this.childNodes = [ TPanel.new('information', data = data ) ];
7 END; 7 END;
8 8
9 %] 9 %]
10 [% FOREACH node IN this.childNodes() %] 10 [% FOREACH node IN this.childNodes() %]
11 <div>[% node.Render() %]</div> 11 <div>[% node.Render() %]</div>