view _test/Resources/TTView/complex.tt @ 323:b56b1ec33b59

minor changes to support JSON in transformation from a query to an object
author sergey
date Thu, 23 May 2013 18:40:26 +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 %]