Mercurial > pub > Impl
diff _test/Resources/TTView/My/Org/Panel.tt @ 194:4d0e1962161c
Replaced tabs with spaces
IMPL::Web::View - fixed document model, new features (control classes, document constructor parameters)
author | cin |
---|---|
date | Tue, 10 Apr 2012 20:08:29 +0400 |
parents | 78a18a2b6266 |
children | b8c724f6de36 |
line wrap: on
line diff
--- a/_test/Resources/TTView/My/Org/Panel.tt Tue Apr 10 08:13:22 2012 +0400 +++ b/_test/Resources/TTView/My/Org/Panel.tt Tue Apr 10 20:08:29 2012 +0400 @@ -1,21 +1,21 @@ [% - META version = 1; - BLOCK INIT; - dojoDefaultClass = 'dijit.form.Input'; - dojo.require.push( dojoDefaultClass ); - TPreview = require('My/Org/TextPreview'); - END; - BLOCK CTOR; - dojoClass = dojoDefaultClass; - visualClass = this.visualClass || 'classic'; - FOREACH text IN this.data; - append(TPreview.new('preview', nodeValue = text )); - END; - END; + META version = 1; + BLOCK INIT; + dojoDefaultClass = 'dijit.form.Input'; + dojo.require.push( dojoDefaultClass ); + TPreview = require('My/Org/TextPreview'); + END; + BLOCK CTOR; + this.dojoClass = this.dojoClass || dojoDefaultClass; + this.visualClass = this.visualClass || 'classic'; + FOREACH text IN this.data; + append(TPreview.new('preview', nodeValue = text )); + END; + END; %] -<div class="$visualClass" data-dojo-type="$dojoClass"> - [% FOREACH node IN select('preview') %] - [% node.Render() %] - <hr /> - [% END %] +<div class="$this.visualClass" data-dojo-type="$this.dojoClass"> + [% FOREACH node IN select('preview') %] + [% node.Render() %] + <hr /> + [% END %] </div> \ No newline at end of file