Mercurial > pub > Impl
view _test/Resources/TTView/My/Org/Panel.tt @ 259:b92f19630d33
Merge with 91bae9f41a9cf2d52f5cff5a5c3e7c8683c7d47e
author | sergey |
---|---|
date | Fri, 21 Dec 2012 00:09:11 +0400 |
parents | b8c724f6de36 |
children | 0f59b2de72af |
line wrap: on
line source
[% META version = 1; BLOCK INIT; dojoDefaultClass = 'dijit.form.Input'; dojo.require.push( dojoDefaultClass ); TPreview = require('My/Org/TextPreview'); END; BLOCK CTOR; this.dojoClass = this.dojoClass || dojoDefaultClass; this.visualClass = this.visualClass || 'classic'; this.childNodes = []; FOREACH text IN this.data; this.childNodes.push( TPreview.new('preview', nodeValue = text ) ); END; END; %] <div class="$this.visualClass" data-dojo-type="$this.dojoClass"> [% FOREACH node IN this.childNodes %] [% node.Render() %] <hr /> [% END %] </div>