[Twisted-web] Don't use the context?

Tristan Seligmann mithrandi-twisted-web at mithrandi.za.net
Mon Oct 16 07:07:13 CDT 2006

* Jonathan Lange <jml at mumak.net> [2006-10-13 09:00:54 +1000]:

> Allow me to question your answer with a question: How does one render
> a sequence without nevow:data directives?
> <ul n:data="foo" n:render="sequence">
> <li n:pattern="item">
> <n:invisible n:data="name" n:render="string"/>
> </li>
> </ul>

I generally just do something like this:

<ul n:render="products">
<li n:pattern="item">
<n:slot name="name" />

The "products" renderer is then implemented by handing the relevant data
to a helper function.
mithrandi, i Ainil en-Balandor, a faer Ambar
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 197 bytes
Desc: Digital signature
Url : http://twistedmatrix.com/pipermail/twisted-web/attachments/20061016/30876f54/attachment.pgp

More information about the Twisted-web mailing list