annotate _test/Resources/TTView/My/Org/Panel.tt @ 190:cd1ff7029a63

IMLP::Web::View refactored, added new method 'require' which is available inside templates. Changed document rendering.
author cin
date Wed, 04 Apr 2012 17:51:27 +0400
parents 08015e2803f1
children 78a18a2b6266
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';
cd1ff7029a63 IMLP::Web::View refactored, added new method 'require' which is available inside templates. Changed document rendering.
cin
parents: 189
diff changeset
11 FOREACH text IN data;
cd1ff7029a63 IMLP::Web::View refactored, added new method 'require' which is available inside templates. Changed document rendering.
cin
parents: 189
diff changeset
12 CALL this.appendChild(TPreview.new('preview', nodeValue = text ));
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 %]
6c0fee769b0c IMPL::Web::View::TTControl tests, fixes
cin
parents:
diff changeset
16 [% BLOCK RENDER %]
189
08015e2803f1 IMPL::Vew::Web - fixed memory leaks, more tests
cin
parents: 188
diff changeset
17 <div class="$visualClass" data-dojo-type="$dojoClass">
08015e2803f1 IMPL::Vew::Web - fixed memory leaks, more tests
cin
parents: 188
diff changeset
18 [% FOREACH node IN this.selectNodes('preview') %]
08015e2803f1 IMPL::Vew::Web - fixed memory leaks, more tests
cin
parents: 188
diff changeset
19 [% node.Render() %]
08015e2803f1 IMPL::Vew::Web - fixed memory leaks, more tests
cin
parents: 188
diff changeset
20 <hr />
08015e2803f1 IMPL::Vew::Web - fixed memory leaks, more tests
cin
parents: 188
diff changeset
21 [% END %]
08015e2803f1 IMPL::Vew::Web - fixed memory leaks, more tests
cin
parents: 188
diff changeset
22 </div>
186
6c0fee769b0c IMPL::Web::View::TTControl tests, fixes
cin
parents:
diff changeset
23 [% END %]