view _test/Resources/TTView/complex.tt @ 312:75a78cbf7dcf

View refactoring: INIT blocks are deprecated
author cin
date Mon, 29 Apr 2013 01:10:42 +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 %]