[Zope] Continued problem tal:condition
Dieter Maurer
dieter@handshake.de
Fri, 23 Aug 2002 19:15:34 +0200
KevinL writes:
> ...
> I just added a page template, test_macro, and surrounded the default
> content with "metal:block define-macro="test". I added another ptl,
> test, and made it consist entirely of:
>
> <span tal:define="mName string:test">
> <metal:block use-macro="here/test_macro/macros/?mName">
> </metal:block>
> </span>
>
> When you view test, you get the test_macro macro appearing.
>
> This works. More than that, the conditional picking of macros like that
> is important, I think - otherwise a lot of the dynamicness of a site
> vanishes. Perhaps we're talking at cross-purposes? Or have I been
> relying on a brokenness in macros/tal? I can certainly see in the
> documentation that it says macros are expanded before tal is executed,
> but that seems to not be the case in practice?
What happens when you turn on "Expand macros when editing"?
Dieter