[Zope3-Users] Problem with macro

Christophe Combelles ccomb at free.fr
Sun Feb 25 08:41:15 EST 2007


Florian Lindner a écrit :
> Hello,
> I have a simple problem. A template:
> 
> <html metal:use-macro="views/standard_macros/view" i18n:domain="xgm.de/Blog">
>   <body>
>     <metal:block metal:define-macro="Blog">
>     <metal:block metal:fill-slot="body">
>       <h1 tal:content="context/title" />
>       <div tal:replace="context/description" />
>          [...]
>       </div>
> 
>     </metal:block>
>     </metal:block>
>   </body>
> </html>

I'm not good with METAL (I'm trying to mainly use viewlets), but
is it really valid to have use-macro and define-macro in the same template?

I'm only using define-macro followed by define-slot,
or use-macro followed by fill-slot.
Is it possible to mix all this?

Christophe


> 
> That is registered as view.html.
> 
> Now I want to use the macro in another page:
> 
> div metal:use-macro="context/Blog/@@view.html/Blog" />
> 
> (tried different variations)
> 
> but that always causes a system error because the macro could not be found.
> 
> Thanks,
> 
> Florian
> _______________________________________________
> Zope3-users mailing list
> Zope3-users at zope.org
> http://mail.zope.org/mailman/listinfo/zope3-users
> 
> 



More information about the Zope3-users mailing list