Source

pyconjp2011 / wtforms / pyconjp2011 / wtforms_demo / templates / index.mak

Full commit
<html>
<head>
<title>WTForms Demo</title>
</head>
<body>
<table>
${self.field_row(form.username)}
${self.field_row(form.password)}
${self.field_row(form.user_image)}
</table>
</body>
</html>

<%def name="field_row(field)">
<tr>
<td>
${field.label}
</td>
<td>
${field()}
</td>
</tr>
</%def>