Mercurial > pub > Impl
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 |
rev | line source |
---|---|
186 | 1 [% |
2 META version = 1; | |
3 BLOCK INIT; | |
4 dojoDefaultClass = 'dijit.form.Input'; | |
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 | 7 END; |
8 BLOCK CTOR; | |
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 | 14 END; |
15 %] | |
16 [% BLOCK RENDER %] | |
189 | 17 <div class="$visualClass" data-dojo-type="$dojoClass"> |
18 [% FOREACH node IN this.selectNodes('preview') %] | |
19 [% node.Render() %] | |
20 <hr /> | |
21 [% END %] | |
22 </div> | |
186 | 23 [% END %] |