Hi Ron,

In tapestry you need to think of a 'template' as a 'component'. Components don't 'extend' each other, however they can be included within one another.

Components can be made flexible enough so that they can defer sections to their containing component via parameters or the body (<t:body />) component.

These might help you understand the concept.

http://tapestry.apache.org/layout-component.html
http://jumpstart.doublenegative.com.au/jumpstart/examples/layoutwithmenu/page1

p.

On 29/11/2010 11:08 AM, Lu Mudong wrote:
Hello, list,
I am pretty new to tapestry. I am trying to figure out how to extend a parent 
template, all the googling and tutorials didn't help.
All the examples I found extend a parent template like below:
<t:extend xmlns:t="http://tapestry.apache.org/schema/tapestry_5_1_0.xsd";>   
......</t:extend>
Let's say I have a parent template named base.tml,  I want the child template 
homepage.tml to extend base.tml, how is the child template homepage.tml 
supposed to know what its parent template is?
thanks,
Ron


                                        

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
For additional commands, e-mail: users-h...@tapestry.apache.org

Reply via email to