Mercurial > pub > Impl
comparison _test/Resources/TTView/complex.tt @ 301:aeeb57a12046
*IMPL::Web::View: templates inheritance support
author | cin |
---|---|
date | Mon, 25 Mar 2013 02:04:18 +0400 |
parents | 3a9cfea098dd |
children |
comparison
equal
deleted
inserted
replaced
300:bf3af33b9003 | 301:aeeb57a12046 |
---|---|
1 [% | 1 [% |
2 META version = 1, title = "my document 2", layout="default"; | 2 META version = 1, title = "my document 2", layout="default"; |
3 | 3 |
4 TPanel = require('My/Org/Panel'); | 4 TPanel = require('My/Org/Panel'); |
5 this.childNodes = [ TPanel.new('information', data = data ) ]; | 5 this.childNodes = [ TPanel.new(data = data ) ]; |
6 | 6 |
7 %] | 7 %] |
8 [% FOREACH node IN this.childNodes() %] | 8 [% FOREACH node IN this.childNodes() %] |
9 <div>[% node.Render() %]</div> | 9 <div>[% node.Render() %]</div> |
10 [% END %] | 10 [% END %] |