David - try using the t:content element ( http://tapestry.apache.org/component-templates.html). It's supposed to do exactly what you need - just put it around your "main content" and everything else would be ignored when the template is rendered.
Cheers, Alex K On Thu, Sep 15, 2011 at 9:32 AM, dkeenan <david_siedle...@yahoo.co.uk>wrote: > Hi. the trouble is when I try to escape everything around the main > content.. > eg. if the About.tml looks a bit like this... > > <html> > <head> > > </head> > > <body> > about text > </body> > > <html> > > I want it to have all the body/head tags in the TML file as above, so it > can > easily be viewed outiside of tapestry. > > But, i want tapestry to use Layout.tml to fill in everyting outside of the > content, when running live. So i tried doing this approach... > > <t:remove> > <html> > <head> > > </head> > > <body> > </t:remove> > > about text > > <t:remove> > </body> > > <html> > > </t:remove> > > > I was hoping that tapestry would remove the surrounding html at runtime, > and > fill this in using the HTML for my Layout.tml template. But tapestry doesnt > like removing the above sections as the elements inside the remove tags > dont > have matching open close elements. > > I know this seems like a really long winded way of doing what I want but I > cant find anyting simpler. Essentiall i jsut want to have a bunch of TML > files that can easily be viewed in a browser (nice for the designer), but > then Tapestry strips out the nav bar at the top and the footer etc. and > replaces them with ones from Layout.tml. > > I wanted to do this so I know that all pages have the correct up to date > nav > bar/footer when running live, but the designer can still design against > full > html pages? > > > Thanks again, > > David. > > -- > View this message in context: > http://tapestry.1045711.n5.nabble.com/Using-layouts-partial-page-templates-tp4806800p4806846.html > Sent from the Tapestry - User mailing list archive at Nabble.com. > > --------------------------------------------------------------------- > To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org > For additional commands, e-mail: users-h...@tapestry.apache.org > >