Mercurial > pub > Impl
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 |
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'; |
191 | 11 FOREACH text IN this.data; |
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 | 14 END; |
15 %] | |
189 | 16 <div class="$visualClass" data-dojo-type="$dojoClass"> |
191 | 17 [% FOREACH node IN select('preview') %] |
189 | 18 [% node.Render() %] |
19 <hr /> | |
20 [% END %] | |
191 | 21 </div> |