[Zope] Namesapces
Chris Withers
chrisw@nipltd.com
Wed, 13 Jun 2001 10:51:34 +0100
Casey Duncan wrote:
>
> That DTML methods and documents have scratch namespace that is created
> at the top of the stack before the code is executed. This namespace
> would be initially empty and automatically scoped so that it is popped
> off when the method completes. This would give DTML a true local
> variable space, at little expense.
This is exactly what happens with the _ namespace ;-)
Look at the dtml-let and dtml-with tags and the _.namespace function...
cheers,
Chris