Luca Olivetti wrote at 2005-11-28 12:11 +0100:
>I'd like to render a macro from python code.
>I saw this recipe and instead of 
>calling the macro_renderer template from  dtml code I can simply call it 
>from python (and it works), but is there a more direct way? (something 
>like theTemplate.useMacro('macroname',param1='value2',param2='value2')).

Macros were not designed to be executed by Python Scripts.

You can, however, view them as programs and let them evaluate
by an adequate "TALInterpreter". Not sure, that this is simpler
than your current approach...

ZPT mailing list

Reply via email to