annotate _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
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
186
6c0fee769b0c IMPL::Web::View::TTControl tests, fixes
cin
parents:
diff changeset
1 [%
194
4d0e1962161c Replaced tabs with spaces
cin
parents: 191
diff changeset
2 META version = 1;
4d0e1962161c Replaced tabs with spaces
cin
parents: 191
diff changeset
3 BLOCK INIT;
4d0e1962161c Replaced tabs with spaces
cin
parents: 191
diff changeset
4 dojoDefaultClass = 'dijit.form.Input';
4d0e1962161c Replaced tabs with spaces
cin
parents: 191
diff changeset
5 dojo.require.push( dojoDefaultClass );
4d0e1962161c Replaced tabs with spaces
cin
parents: 191
diff changeset
6 TPreview = require('My/Org/TextPreview');
4d0e1962161c Replaced tabs with spaces
cin
parents: 191
diff changeset
7 END;
4d0e1962161c Replaced tabs with spaces
cin
parents: 191
diff changeset
8 BLOCK CTOR;
4d0e1962161c Replaced tabs with spaces
cin
parents: 191
diff changeset
9 this.dojoClass = this.dojoClass || dojoDefaultClass;
4d0e1962161c Replaced tabs with spaces
cin
parents: 191
diff changeset
10 this.visualClass = this.visualClass || 'classic';
4d0e1962161c Replaced tabs with spaces
cin
parents: 191
diff changeset
11 FOREACH text IN this.data;
4d0e1962161c Replaced tabs with spaces
cin
parents: 191
diff changeset
12 append(TPreview.new('preview', nodeValue = text ));
4d0e1962161c Replaced tabs with spaces
cin
parents: 191
diff changeset
13 END;
4d0e1962161c Replaced tabs with spaces
cin
parents: 191
diff changeset
14 END;
186
6c0fee769b0c IMPL::Web::View::TTControl tests, fixes
cin
parents:
diff changeset
15 %]
194
4d0e1962161c Replaced tabs with spaces
cin
parents: 191
diff changeset
16 <div class="$this.visualClass" data-dojo-type="$this.dojoClass">
4d0e1962161c Replaced tabs with spaces
cin
parents: 191
diff changeset
17 [% FOREACH node IN select('preview') %]
4d0e1962161c Replaced tabs with spaces
cin
parents: 191
diff changeset
18 [% node.Render() %]
4d0e1962161c Replaced tabs with spaces
cin
parents: 191
diff changeset
19 <hr />
4d0e1962161c Replaced tabs with spaces
cin
parents: 191
diff changeset
20 [% END %]
191
78a18a2b6266 IMPL::Web::View improvements (unstable)
cin
parents: 190
diff changeset
21 </div>