[Zope] template wrapper for stx

David Bear David.Bear@asu.edu
Fri, 31 Jan 2003 10:33:07 -0700


On Wed, Jan 29, 2003 at 09:02:38PM +0100, Dieter Maurer wrote:
> David Bear wrote at 2003-1-28 14:58 -0700:
>  > I'd like to create a page template.  Call it showMe.  
>  > ....
>  > /infoSource/docStore/coolFile/showMe
>  > 
>  > and rely on aquistion to find showMe?  but then how do I pass the
>  > 'coolFile' into the showMe template?  
> It is available inside "showMe" as the predefined variable "here".
> 
> Please read the PageTemplate section in the Zope Book (2.6 edition).
> It is found on Zope.org.
> 
> 
Thanks for all the comments.  it was far easier than I though

<div tal:replace='structure here'> replaced content </div>

did it.  so if the above tal is in a showMe template, and a structured
text doc is called theDoc, I can view it via

/zope/is/cool/theDoc/showMe

sometimes, things are WAY TOO simple..


-- 
David Bear
College of Public Programs/ASU
Mail Code 0803