[Twisted-web] [Nevow] again on data directive

Manlio Perillo manlio_perillo at libero.it
Thu Jan 4 09:18:49 CST 2007


L. Daniel Burr ha scritto:
> Hi Manlio,
> 
> On Thu, 04 Jan 2007 04:58:16 -0600, Manlio Perillo 
> <manlio_perillo at libero.it> 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



More information about the Twisted-web mailing list