4 Mar
2004
4 Mar
'04
10:53 p.m.
How can I invoke a macro or a tal:replace where the macro or object name has been dynamically computed at runtime? eg: <tal block define = "name string:thing_${type}_${type}"> <tal: replace = "structure here/${name}" /> </tal:block> or <tal block define = "name string:macro_${type}_${type}"> <div: metal:use-macro = "here/macro_file/${name}" /> </tal:block> I frequently find myself wanting to do pattern operations like this for things like help texts, boilerplate, etc. -- J C Lawrence ---------(*) Satan, oscillate my metallic sonatas. claw@kanga.nu He lived as a devil, eh? http://www.kanga.nu/~claw/ Evil is a name of a foeman, as I live.