On Wed, Feb 01, 2006 at 05:15:26PM -0500, Phillip J. Eby wrote: | The "template" doesn't get to control the status or headers if all it | can do is return is a string.
WSGI the hammer! Must we necessarly have a nail here? I think what's missing in this discussion is that templates are often used to build but a small part of an result; a left toolbar, a menu, perhaps even a row in a table -- but no more. I think that the requirements and design constraints involved make them so different from full-fledged WSGI applications/filters that even thinking about them in WSGI terms isn't helpful. That said, I do like the idea of passing templates a WSGI ``environ`` in addition to the input data that they should render; however, everything else in WSGI doesn't seem particularly applicable. The "composition" patterns are completely different. Best, Clark _______________________________________________ Web-SIG mailing list Web-SIG@python.org Web SIG: http://www.python.org/sigs/web-sig Unsubscribe: http://mail.python.org/mailman/options/web-sig/archive%40mail-archive.com