[Zope3-dev] Re: tal:define="..." considered harmful?

Tonico Strasser contact_tonico at yahoo.de
Mon Feb 13 08:20:07 EST 2006

Jean-Marc Orliaguet wrote:
> "tal:define" is used here to pass parameters to the macro. In ZPT this 
> is done implicitly, which is why macros specify a list a variables that 
> must be defined.
> In other language this is done explictly. (cf. XSLT <xsl:with-param ...>)
> If it was done explicitly in ZPT it could look like:
>  <li metal:use-macro="macros/li_repeat" metal:with-params="items1" />
>  <li metal:use-macro="macros/li_repeat" metal:with-params="items2" />

Ok, thanks for the explanation. This looks better of course.

If this were possible I could live without tal:define.

Looking forward to see explicit ZPTs soon :)


More information about the Zope3-dev mailing list