On Mar 9, 2010, at 12:15 PM, Robert Zeigler wrote: > t:contnt is what you want. It's not a component, it is it's own xml tag. So, > either: > > <html> > <body> > <t:content> > stuff you want in here > </t:content> > </body> > </html> > > Or: > > <html> > <t:content> > <body> > ... > </body> > </t:content> > </html> > > Former will exclude html + body in the final rendered page. > Latter will exclude html, but include body in the final rendered page.
Yeah, so I guess this is a 5.2 feature request then. There's t:remove and t:content, which you can use to make components "previewable". Then there's t:type ="stuff", which surprisingly, doesn't support type="remove", or type="content". Seems like t:type="ignore" and t:type="remove" would be nice, then you could do <html t:type="ignore"> <body t:type="ignore"> <p t:type="remove"> This is a my cool component. You can use it by...</p> <div t:type="content"> <!--- component stuff here. --> </div> </body> </html> That is, you could put the documentation for using the component in the template for the component. Just a suggestion that it would be cool to extend the invisible instrumentation, one of the reasons I chose Tapestry was the ability to take a page an artist mocked up and turn it into a dynamic page. It would be nice to go the other way more easily. Pierce
smime.p7s
Description: S/MIME cryptographic signature