Mercurial > pub > Impl
diff _test/Resources/TTView/My/Org/Panel.tt @ 189:08015e2803f1
IMPL::Vew::Web - fixed memory leaks, more tests
author | cin |
---|---|
date | Wed, 04 Apr 2012 02:49:45 +0400 |
parents | 029c9610528c |
children | cd1ff7029a63 |
line wrap: on
line diff
--- a/_test/Resources/TTView/My/Org/Panel.tt Tue Apr 03 20:08:42 2012 +0400 +++ b/_test/Resources/TTView/My/Org/Panel.tt Wed Apr 04 02:49:45 2012 +0400 @@ -10,5 +10,16 @@ END; %] [% BLOCK RENDER %] -<div class="$visualClass" data-dojo-type="$dojoClass">$this.nodeValue</div> +[% + TPreview = document.require('My/Org/TextPreview'); + FOREACH text IN data; + CALL this.appendChild(TPreview.new('preview', nodeValue = text )); + END; +%] +<div class="$visualClass" data-dojo-type="$dojoClass"> + [% FOREACH node IN this.selectNodes('preview') %] + [% node.Render() %] + <hr /> + [% END %] +</div> [% END %] \ No newline at end of file