view _test/Resources/TTView/complex.tt @ 307:2da2564f115d

*TTView: fixed memory leak
author cin
date Thu, 18 Apr 2013 02:21:28 +0400
parents aeeb57a12046
children
line wrap: on
line source

[%
    META version = 1, title = "my document 2", layout="default";

    TPanel = require('My/Org/Panel');
    this.childNodes = [ TPanel.new(data = data ) ];

%]
[% FOREACH node IN this.childNodes() %]
	<div>[% node.Render() %]</div>
[% END %]