template equip_form(wizard, title, errors): from mems.ui import standard standard.header(title=title)
""" <table border=1> <tr><th>Equipment</th></tr> """ wizard.text_field( "manufacturer", "Manufacturer" ) ... "</table>"
Basically it's Python syntax, but every expression is converted to a string and added to the output. Now, what to do with the old templating code? One of these days I need to wrap up Quixote for a 0.2 release (or at least get a licence for it and then put it on SourceForge).
Only Martha and I showed up for book club, so after waiting for half an hour, we gave up; maybe next week we'll finally finish Thucydides, after starting it back in April (feels like aeons ago). Knocked another item off my TODO list, a minor but useful fix to the gzip module.