[Web-SIG] Standardized template API
Clark C. Evans
cce at clarkevans.com
Wed Feb 1 23:42:26 CET 2006
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
More information about the Web-SIG
mailing list