Just curious. How much slower? Thanks alvin On 12/15/06, Manlio Perillo <manlio_perillo@libero.it> wrote:
First let me say that I really like Nevow template system. Once you became expert with it, it proves to be really flexible.
The problem is the performance. I have done a simple test with the rendering of a table 5 * 20, Nevow against Django, and Nevow is much slower.
The problem is that, I think, there are a lot of objects adaptation.
Is it possible to use that same model used by django.template?
You pass a context (that is a dictionary usable like a stack: push/pop) to the render function. All the data directive will search the data in the context (like djando, first dictionary lookup, then attribute lookup, and so).
As an example n:data='x.y' ==> ctx['x']['y']. A rend.Page.renderHTTP can build a context from the instance dictionary.
Thanks and regards Manlio Perillo
_______________________________________________ Twisted-web mailing list Twisted-web@twistedmatrix.com http://twistedmatrix.com/cgi-bin/mailman/listinfo/twisted-web
-- Alvin Wang