Mercurial > pub > Impl
diff _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 | 
line wrap: on
 line diff
--- a/_test/Resources/TTView/My/Org/Panel.tt Wed Apr 04 17:51:27 2012 +0400 +++ b/_test/Resources/TTView/My/Org/Panel.tt Thu Apr 05 17:51:51 2012 +0400 @@ -8,16 +8,14 @@ BLOCK CTOR; dojoClass = dojoDefaultClass; visualClass = this.visualClass || 'classic'; - FOREACH text IN data; - CALL this.appendChild(TPreview.new('preview', nodeValue = text )); + FOREACH text IN this.data; + append(TPreview.new('preview', nodeValue = text )); END; END; %] -[% BLOCK RENDER %] <div class="$visualClass" data-dojo-type="$dojoClass"> - [% FOREACH node IN this.selectNodes('preview') %] + [% FOREACH node IN select('preview') %] [% node.Render() %] <hr /> [% END %] -</div> -[% END %] \ No newline at end of file +</div> \ No newline at end of file
