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

_______________________________________________
Twisted-web mailing list
[email protected]
http://twistedmatrix.com/cgi-bin/mailman/listinfo/twisted-web

Reply via email to