Jean-Paul Calderone ha scritto:
On Fri, 15 Dec 2006 11:56:55 +0100, Manlio Perillo
<[EMAIL PROTECTED]> wrote:
[...]
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.
Optimization can be a complicated undertaking.
I'm not asking for optimization.
I'm asking for a possible rewriting of how rend.Page (and flat) works.
Regards Manlio Perillo
_______________________________________________
Twisted-web mailing list
[email protected]
http://twistedmatrix.com/cgi-bin/mailman/listinfo/twisted-web