[Twisted-web] Use nevow:pattern and nevow:attr to render a list of

Moe Aboulkheir moe at divmod.com
Fri Jul 6 03:24:51 EDT 2007


<option nevow:pattern="option">
  <nevow:attr name="value"><nevow:slot name="value" /></nevow:attr>
  <nevow:slot name="label" />
</option>

You can then do pattern.fillSlots('value', '1').fillSlots('label', 'Option 1') to get to something that'll serialize to <option value="1">Option 1</option>.



More information about the Twisted-web mailing list