[ZPT] dtml-with in ZPT

Chris Withers chrisw@nipltd.com
Fri, 16 Aug 2002 13:43:34 +0100


Jean Jordaan wrote:
> Hi all
> 
> Is this:
> 
> <tal:calendar content="structure python:here.date.calendar(here.date, 
> request)">
> </tal:calendar>
> 
> the best way of doing this:
> 
> <dtml-with date><dtml-var calendar></dtml-with>
> 
> with ZPT?

Try this:

<tal:x define="date here/date"
        replace="date/calendar"/>

...cheers,

Chris