[ZPT] Picking a macro on the fly

Chris Meyers chris@hddesign.com
Mon, 18 Feb 2002 15:46:30 -0600


Hey all,
Is there a way to mix tal and metal in the same tag so that you can pick a macro on the fly? What I would like to do is something like this:

<html metal:use-macro="python:here.pickSomeMacroHere()">
...
</html>

where pickSomeMacroHere() is a python script which selects a macro based on the user. If you can't mix tal and metal, is there any other way to do this. I've looked through the ZPT tutorials and the mailing list, but I haven't found any info regarding this.

Any suggestions appreciated,
Chris

-- 
Chris Meyers
7941 Tree Lane Suite 200
Madison WI 53717