[ZPT] Re: [Zope3-dev] TAL Macro Parameters

Chris Withers chrisw at nipltd.com
Fri May 30 16:00:14 EDT 2003


Shane Hathaway wrote:
> 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. 

What makes this preferable to calling a page template?

>> 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.

I honestly can't think of any, can you elaborate?

> Note also that you have to drop to Python syntax to 
> call a template with options.

Indeed, this is a general problem with TALES. I'd love to see it sovled and 
would much prefer to solve that problem than adding Macros Parameters first...

cheers,

Chris




More information about the ZPT mailing list