Mercurial > pub > Impl
view _test/Resources/TTView/complex.tt @ 273:ad93c9f4dd93
+Added support for destructors, (special method named DTOR)
author | sergey |
---|---|
date | Tue, 29 Jan 2013 17:19:10 +0400 |
parents | b8c724f6de36 |
children | 2d253e6e4a88 |
line wrap: on
line source
[% META version = 1, title = "my document 2", layout="default"; BLOCK CTOR; TPanel = require('My/Org/Panel'); this.childNodes = [ TPanel.new('information', data = data ) ]; END; %] [% FOREACH node IN this.childNodes() %] <div>[% node.Render() %]</div> [% END %]