<ul nevow:data="list" nevow:render="sequence">
<li nevow:pattern="item">
<span nevow:data="greeting" nevow:render="string" />
<span nevow:data="group" nevow:render="string" />
</li>
</ul>
class Message:
__implements__ = inevow.IContainer
def __init__ (self, greeting, group):
self.greeting = greeting
self.group = group
def child (self, context, name):
return getattr (self, name)
class Page(rend.Page):
docFactory = loaders.htmlfile('hellohtml.html')
def data_list (self, context, data):
return [Message('Hi', 'Chipy'),
Message('Bye', 'Chipy')]