OK, i found an example for this problem in fields.pt
Hi list,
is it possible to use a variable expression in metal:use-macro
statements? For example:
<div tal:define="path_to_macro python:here.pathToMacro()">
<div metal:use-macro="path_to_macro"></div>
</div>
<div tal:define="widget_macro python:path('here/%s/macros/%s' %
(widget.pathToMacro(), widget.mode()))">
<div metal:use-macro="widget_macro"></div>
</div>
Andreas Petermann
_______________________________________________
Product-Developers mailing list
[email protected]
http://lists.plone.org/mailman/listinfo/product-developers