diff _test/Resources/TTView/complex.tt @ 191:78a18a2b6266

IMPL::Web::View improvements (unstable)
author cin
date Thu, 05 Apr 2012 17:51:51 +0400
parents 08015e2803f1
children 4d0e1962161c
line wrap: on
line diff
--- a/_test/Resources/TTView/complex.tt	Wed Apr 04 17:51:27 2012 +0400
+++ b/_test/Resources/TTView/complex.tt	Thu Apr 05 17:51:51 2012 +0400
@@ -1,9 +1,12 @@
 [%
-	META version = 1, title = "my document 2";
+	META version = 1, title = "my document 2", layout= "Layout/default";
 
-	TPanel = document.require('My/Org/Panel');
-		
-	this.appendChild(TPanel.new('information'));
-	
-	this.selectSingleNode('information').Render();
-%]
\ No newline at end of file
+	BLOCK CTOR;
+		TPanel = require('My/Org/Panel');
+		append( TPanel.new('information', data = this.data ) );
+	END;
+
+%]
+[% FOREACH node IN this.childNodes() %]
+		<div>[% node.Render() %]</div>
+[% END %]
\ No newline at end of file