[Zope] Re: (tal, metal) macro template id

Evan Simpson evan@4-am.com
Fri, 04 Oct 2002 16:04:02 -0500


Pablo Ziliani wrote:
> Inside the template where macros are defined, I need to get its id

This is not possible with the current implementation, except by doing an 
ugly cut & paste define in the using template:

<div tal:define="macro_t here/blah">
   <div metal:use-macro="here/blah/macros/foo">
...
<span tal:replace="macro_t/id | template/id">ID</span>
...
   </div>
</div>

Sorry,

Evan @ 4-am