[ZPT] page layout by "including" objects

Ron Bickers rbickers-dated-997891280.729e84@logicetc.com
Wed, 8 Aug 2001 12:01:20 -0400


> -----Original Message-----
> From: Evan Simpson [mailto:evan@zope.com]

> > Ok.  I didn't think of that.  Would that be better because it avoids the
> > potential confusion of redefining 'here', or is there some
> other technical
> > reason for it?
>
> Just to avoid redefining 'here'.  It's not necessarily a problem to do
> so, but it would make me nervous.

To me, redefining 'here' for a given block seems like the equivalent of
using dtml-with.  That is, putting another object at the top of the
namespace such that it's used first to find variables in the enclosed
methods.  Since page templates recognize 'here' as the "top" so to speak (or
the context), this seems like a consistent way to be sure the template will
use the desired 'here'.  If I use different variables, I would be going back
to my template to figure out what I used, given my faulty memory.

Perhaps I should leave my DTML ways behind when I work with ZPT?

_______________________

Ron Bickers
Logic Etc, Inc.