[Twisted-web] [Nevow] again on data directive
Manlio Perillo
manlio_perillo at libero.it
Thu Jan 4 04:58:16 CST 2007
To put it simple, I would like to have this feature:
<div n:data="xxx" n:render="yyy" />
def render_yyy(request, tag):
assert tag.data == 'xxx'
That is: data directives are only used to pass data from the template to
the renderer.
Is this a good idea?
Now what I can do is:
<div data="xxx" n:render="yyy" />
def render-yyy(request, tag):
assert tag.attributes.pop('data') == 'xxx'
Thanks and regards Manlio Perillo
More information about the Twisted-web
mailing list