comparison _test/Resources/TTView/My/Org/Panel.tt @ 191:78a18a2b6266

IMPL::Web::View improvements (unstable)
author cin
date Thu, 05 Apr 2012 17:51:51 +0400
parents cd1ff7029a63
children 4d0e1962161c
comparison
equal deleted inserted replaced
190:cd1ff7029a63 191:78a18a2b6266
6 TPreview = require('My/Org/TextPreview'); 6 TPreview = require('My/Org/TextPreview');
7 END; 7 END;
8 BLOCK CTOR; 8 BLOCK CTOR;
9 dojoClass = dojoDefaultClass; 9 dojoClass = dojoDefaultClass;
10 visualClass = this.visualClass || 'classic'; 10 visualClass = this.visualClass || 'classic';
11 FOREACH text IN data; 11 FOREACH text IN this.data;
12 CALL this.appendChild(TPreview.new('preview', nodeValue = text )); 12 append(TPreview.new('preview', nodeValue = text ));
13 END; 13 END;
14 END; 14 END;
15 %] 15 %]
16 [% BLOCK RENDER %]
17 <div class="$visualClass" data-dojo-type="$dojoClass"> 16 <div class="$visualClass" data-dojo-type="$dojoClass">
18 [% FOREACH node IN this.selectNodes('preview') %] 17 [% FOREACH node IN select('preview') %]
19 [% node.Render() %] 18 [% node.Render() %]
20 <hr /> 19 <hr />
21 [% END %] 20 [% END %]
22 </div> 21 </div>
23 [% END %]