[Product-Developers] variable expression in metal:use-macro

Andreas Petermann petepetermann at googlemail.com
Sat Jan 17 15:55:30 UTC 2009

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>

What i want to do is to create an wrapper for existing macros to add 
some extra attributes, css classes for example.

Andreas Petermann

More information about the Product-Developers mailing list