You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tapestry.apache.org by Geoff Callender <ge...@gmail.com> on 2011/06/14 15:26:09 UTC

Re: How to extend a parent template

The link http://jumpstart.doublenegative.com.au/jumpstart/examples/layoutwithmenu/page1
has been replaced by:

	http://jumpstart.doublenegative.com.au/jumpstart/previews/withlayout/helloworld

and for more about components try:

	http://jumpstart.doublenegative.com.au/jumpstart/examples/component/crud/persons

On 29/11/2010, at 11:49 AM, Paul Stanton wrote:

> 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-unsubscribe@tapestry.apache.org
> For additional commands, e-mail: users-help@tapestry.apache.org
> 


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