annotate _test/Resources/TTView/My/Org/Panel.tt @ 320:28eba7e0c592

*web application action: added method to access HTTP request header.
author sergey
date Thu, 16 May 2013 17:16:41 +0400
parents aeeb57a12046
children
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;
263
0f59b2de72af *fixed IMPL::DOM::Schema circular module references
sergey
parents: 238
diff changeset
4 # this is a document scope
194
4d0e1962161c Replaced tabs with spaces
cin
parents: 191
diff changeset
5 dojoDefaultClass = 'dijit.form.Input';
4d0e1962161c Replaced tabs with spaces
cin
parents: 191
diff changeset
6 dojo.require.push( dojoDefaultClass );
4d0e1962161c Replaced tabs with spaces
cin
parents: 191
diff changeset
7 END;
287
2d253e6e4a88 *TTView refactoring
cin
parents: 263
diff changeset
8
2d253e6e4a88 *TTView refactoring
cin
parents: 263
diff changeset
9 TPreview = require('My/Org/TextPreview');
2d253e6e4a88 *TTView refactoring
cin
parents: 263
diff changeset
10 this.dojoClass = this.dojoClass || dojoDefaultClass;
2d253e6e4a88 *TTView refactoring
cin
parents: 263
diff changeset
11 this.visualClass = this.visualClass || 'classic';
2d253e6e4a88 *TTView refactoring
cin
parents: 263
diff changeset
12 this.childNodes = [];
2d253e6e4a88 *TTView refactoring
cin
parents: 263
diff changeset
13 FOREACH text IN this.data;
301
aeeb57a12046 *IMPL::Web::View: templates inheritance support
cin
parents: 287
diff changeset
14 this.childNodes.push( TPreview.new(nodeValue = text ) );
194
4d0e1962161c Replaced tabs with spaces
cin
parents: 191
diff changeset
15 END;
287
2d253e6e4a88 *TTView refactoring
cin
parents: 263
diff changeset
16
186
6c0fee769b0c IMPL::Web::View::TTControl tests, fixes
cin
parents:
diff changeset
17 %]
194
4d0e1962161c Replaced tabs with spaces
cin
parents: 191
diff changeset
18 <div class="$this.visualClass" data-dojo-type="$this.dojoClass">
238
b8c724f6de36 DOM model refactoring
sergey
parents: 194
diff changeset
19 [% FOREACH node IN this.childNodes %]
194
4d0e1962161c Replaced tabs with spaces
cin
parents: 191
diff changeset
20 [% node.Render() %]
4d0e1962161c Replaced tabs with spaces
cin
parents: 191
diff changeset
21 <hr />
4d0e1962161c Replaced tabs with spaces
cin
parents: 191
diff changeset
22 [% END %]
191
78a18a2b6266 IMPL::Web::View improvements (unstable)
cin
parents: 190
diff changeset
23 </div>