comparison _test/Resources/TTView/My/Org/Panel.tt @ 194:4d0e1962161c

Replaced tabs with spaces IMPL::Web::View - fixed document model, new features (control classes, document constructor parameters)
author cin
date Tue, 10 Apr 2012 20:08:29 +0400
parents 78a18a2b6266
children b8c724f6de36
comparison
equal deleted inserted replaced
193:8e8401c0aea4 194:4d0e1962161c
1 [% 1 [%
2 META version = 1; 2 META version = 1;
3 BLOCK INIT; 3 BLOCK INIT;
4 dojoDefaultClass = 'dijit.form.Input'; 4 dojoDefaultClass = 'dijit.form.Input';
5 dojo.require.push( dojoDefaultClass ); 5 dojo.require.push( dojoDefaultClass );
6 TPreview = require('My/Org/TextPreview'); 6 TPreview = require('My/Org/TextPreview');
7 END; 7 END;
8 BLOCK CTOR; 8 BLOCK CTOR;
9 dojoClass = dojoDefaultClass; 9 this.dojoClass = this.dojoClass || dojoDefaultClass;
10 visualClass = this.visualClass || 'classic'; 10 this.visualClass = this.visualClass || 'classic';
11 FOREACH text IN this.data; 11 FOREACH text IN this.data;
12 append(TPreview.new('preview', nodeValue = text )); 12 append(TPreview.new('preview', nodeValue = text ));
13 END; 13 END;
14 END; 14 END;
15 %] 15 %]
16 <div class="$visualClass" data-dojo-type="$dojoClass"> 16 <div class="$this.visualClass" data-dojo-type="$this.dojoClass">
17 [% FOREACH node IN select('preview') %] 17 [% FOREACH node IN select('preview') %]
18 [% node.Render() %] 18 [% node.Render() %]
19 <hr /> 19 <hr />
20 [% END %] 20 [% END %]
21 </div> 21 </div>