Mercurial > pub > Impl
view _test/Resources/TTView/My/Org/Panel.tt @ 271:56364d0c4b4f
+IMPL::SQL::Schema::MySQL: added basic support for MySQL
author | cin |
---|---|
date | Mon, 28 Jan 2013 02:43:14 +0400 |
parents | 0f59b2de72af |
children | 2d253e6e4a88 |
line wrap: on
line source
[% META version = 1; BLOCK INIT; # this is a document scope dojoDefaultClass = 'dijit.form.Input'; dojo.require.push( dojoDefaultClass ); END; BLOCK CTOR; TPreview = require('My/Org/TextPreview'); 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>