I have the following bit of TALES code in one of my pages. It doesn't occur just once, it occurs multiple times, with the parameters at AAAAAA, BBBBBBB, CCCCCCC, and DDDDDDD changing between each occurrence: <tr tal:define="field form/AAAAAA; value request/form/field_BBBBBB|person/CCCCCCCCC|nothing"> <td class="label" tal:content="field/title">Label</td> <td class="field"> <input type="text" tal:replace="structure python:field.render(value)" /> <span class="formerror" tal:on-error="string:" tal:condition="showerrors" tal:content="structure python:formErrors['DDDDDD']"> Error </span> </td> </tr> Because everything else is the same, I'd like to factor the code out. I was thinking about macros, but using macros within tal statements or tags produces compilation errors. How else can I factor the above out and parametrise it? Thanks, -- martin; (greetings from the heart of the sun.) \____ echo mailto: !#^."<*>"|tr "<*> mailto:" net@madduck NOTE: The pgp.net keyservers and their mirrors are broken! Get my key here: http://people.debian.org/~madduck/gpg/330c4a75.asc a friend is someone with whom you can dare to be yourself