annotate _test/Resources/TTView/My/Org/Panel.tt @ 191:78a18a2b6266

IMPL::Web::View improvements (unstable)
author cin
date Thu, 05 Apr 2012 17:51:51 +0400
parents cd1ff7029a63
children 4d0e1962161c
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 [%
6c0fee769b0c IMPL::Web::View::TTControl tests, fixes
cin
parents:
diff changeset
2 META version = 1;
6c0fee769b0c IMPL::Web::View::TTControl tests, fixes
cin
parents:
diff changeset
3 BLOCK INIT;
6c0fee769b0c IMPL::Web::View::TTControl tests, fixes
cin
parents:
diff changeset
4 dojoDefaultClass = 'dijit.form.Input';
6c0fee769b0c IMPL::Web::View::TTControl tests, fixes
cin
parents:
diff changeset
5 dojo.require.push( dojoDefaultClass );
190
cd1ff7029a63 IMLP::Web::View refactored, added new method 'require' which is available inside templates. Changed document rendering.
cin
parents: 189
diff changeset
6 TPreview = require('My/Org/TextPreview');
186
6c0fee769b0c IMPL::Web::View::TTControl tests, fixes
cin
parents:
diff changeset
7 END;
6c0fee769b0c IMPL::Web::View::TTControl tests, fixes
cin
parents:
diff changeset
8 BLOCK CTOR;
6c0fee769b0c IMPL::Web::View::TTControl tests, fixes
cin
parents:
diff changeset
9 dojoClass = dojoDefaultClass;
190
cd1ff7029a63 IMLP::Web::View refactored, added new method 'require' which is available inside templates. Changed document rendering.
cin
parents: 189
diff changeset
10 visualClass = this.visualClass || 'classic';
191
78a18a2b6266 IMPL::Web::View improvements (unstable)
cin
parents: 190
diff changeset
11 FOREACH text IN this.data;
78a18a2b6266 IMPL::Web::View improvements (unstable)
cin
parents: 190
diff changeset
12 append(TPreview.new('preview', nodeValue = text ));
190
cd1ff7029a63 IMLP::Web::View refactored, added new method 'require' which is available inside templates. Changed document rendering.
cin
parents: 189
diff changeset
13 END;
186
6c0fee769b0c IMPL::Web::View::TTControl tests, fixes
cin
parents:
diff changeset
14 END;
6c0fee769b0c IMPL::Web::View::TTControl tests, fixes
cin
parents:
diff changeset
15 %]
189
08015e2803f1 IMPL::Vew::Web - fixed memory leaks, more tests
cin
parents: 188
diff changeset
16 <div class="$visualClass" data-dojo-type="$dojoClass">
191
78a18a2b6266 IMPL::Web::View improvements (unstable)
cin
parents: 190
diff changeset
17 [% FOREACH node IN select('preview') %]
189
08015e2803f1 IMPL::Vew::Web - fixed memory leaks, more tests
cin
parents: 188
diff changeset
18 [% node.Render() %]
08015e2803f1 IMPL::Vew::Web - fixed memory leaks, more tests
cin
parents: 188
diff changeset
19 <hr />
08015e2803f1 IMPL::Vew::Web - fixed memory leaks, more tests
cin
parents: 188
diff changeset
20 [% END %]
191
78a18a2b6266 IMPL::Web::View improvements (unstable)
cin
parents: 190
diff changeset
21 </div>