comparison _test/Resources/TTView/complex.tt @ 194:4d0e1962161c

Replaced tabs with spaces IMPL::Web::View - fixed document model, new features (control classes, document constructor parameters)
author cin
date Tue, 10 Apr 2012 20:08:29 +0400
parents 78a18a2b6266
children 7a920771fd8e
comparison
equal deleted inserted replaced
193:8e8401c0aea4 194:4d0e1962161c
1 [% 1 [%
2 META version = 1, title = "my document 2", layout= "Layout/default"; 2 META version = 1, title = "my document 2", layout= "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 = this.data ) ); 6 append( 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>
12 [% END %] 12 [% END %]