L. Daniel Burr ha scritto:
Hi Manlio,

On Thu, 04 Jan 2007 04:58:16 -0600, Manlio Perillo <[EMAIL PROTECTED]> wrote:

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.


I just noted that this is already available:

    def data_x(self, ctx, data):
        d = ctx.tag.data
        print d, type(d), d.name
        return 'y'

directive('x') <class 'nevow.stan.directive'> x


So my request is:
please do not remove this feature.
Only remove the IData stuff.



Regards   Manlio Perillo

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

Reply via email to