186
|
1 [%
|
194
|
2 META version = 1;
|
|
3 BLOCK INIT;
|
263
|
4 # this is a document scope
|
194
|
5 dojoDefaultClass = 'dijit.form.Input';
|
|
6 dojo.require.push( dojoDefaultClass );
|
|
7 END;
|
287
|
8
|
|
9 TPreview = require('My/Org/TextPreview');
|
|
10 this.dojoClass = this.dojoClass || dojoDefaultClass;
|
|
11 this.visualClass = this.visualClass || 'classic';
|
|
12 this.childNodes = [];
|
|
13 FOREACH text IN this.data;
|
301
|
14 this.childNodes.push( TPreview.new(nodeValue = text ) );
|
194
|
15 END;
|
287
|
16
|
186
|
17 %]
|
194
|
18 <div class="$this.visualClass" data-dojo-type="$this.dojoClass">
|
238
|
19 [% FOREACH node IN this.childNodes %]
|
194
|
20 [% node.Render() %]
|
|
21 <hr />
|
|
22 [% END %]
|
191
|
23 </div> |