Mercurial > pub > Impl
view _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 source
[% META version = 1; BLOCK INIT; dojoDefaultClass = 'dijit.form.Input'; dojo.require.push( dojoDefaultClass ); END; BLOCK CTOR; dojoClass = dojoDefaultClass; visualClass = this.nodeProperty('visualClass') || 'classic'; END; %] [% BLOCK RENDER %] [% 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 %]