comparison _test/Resources/TTView/My/Org/Panel.tt @ 301:aeeb57a12046

*IMPL::Web::View: templates inheritance support
author cin
date Mon, 25 Mar 2013 02:04:18 +0400
parents 2d253e6e4a88
children
comparison
equal deleted inserted replaced
300:bf3af33b9003 301:aeeb57a12046
9 TPreview = require('My/Org/TextPreview'); 9 TPreview = require('My/Org/TextPreview');
10 this.dojoClass = this.dojoClass || dojoDefaultClass; 10 this.dojoClass = this.dojoClass || dojoDefaultClass;
11 this.visualClass = this.visualClass || 'classic'; 11 this.visualClass = this.visualClass || 'classic';
12 this.childNodes = []; 12 this.childNodes = [];
13 FOREACH text IN this.data; 13 FOREACH text IN this.data;
14 this.childNodes.push( TPreview.new('preview', nodeValue = text ) ); 14 this.childNodes.push( TPreview.new(nodeValue = text ) );
15 END; 15 END;
16 16
17 %] 17 %]
18 <div class="$this.visualClass" data-dojo-type="$this.dojoClass"> 18 <div class="$this.visualClass" data-dojo-type="$this.dojoClass">
19 [% FOREACH node IN this.childNodes %] 19 [% FOREACH node IN this.childNodes %]