[ZPT] Re: [Zope3-dev] TAL Macro Parameters
Shane Hathaway
shane at zope.com
Fri May 23 11:22:56 EDT 2003
Chris Withers wrote:
> Shane Hathaway wrote:
>
>>
>> People are already using it that way, however, and the current syntax
>> is causing pain.
>
>
> Who? Where? Why?
All of Zope Corp.'s recent customers, AFAIK, and probably Plone as well.
They use macros for reusable snippets.
> If you want that kind of behaviour, why not just do something:
>
> <tal:x replace="python:here.myothertemplate(a='x',b=somevar')"/>
>
> ?
There are various reasons to prefer macros over whole templates for
parts of pages. Note also that you have to drop to Python syntax to
call a template with options.
Shane
More information about the ZPT
mailing list