Andreas Tille wrote at 2003-9-25 11:43 +0200:
I try to use Formulator a little bit more effective to enhance the my code with metal. Currently I do the following:
<th> <span tal:replace="structure python:form.item_a.get_value('title')">item_a</span> </th> <td tal:define="item_a request/item_a|nothing"> <input tal:replace="structure python:form.item_a.render(item_a)"> </td>
<th>
<tal:attributes define="item string:item_a"> <metal:macro define-macro="ItemControl"> <th tal:define="FormItem form/?item"> <span tal:replace="structure python:FormItem.get_value('title')">Item</span> </th> <td tal:define="ItemValue request/?item | nothing" <input tal:replace="structure python:FormItem.render(ItemValue)"> </td> </metal:macro> </tal:attributes> <tal:attributes define="item string:item_b"> <metal:macro use-macro="template/macros/ItemControl" /> </tal:attributes> ... Dieter