durusmail: quixote-users: htmltext as a string subtype
htmltext as a string subtype
2003-10-31
2003-11-04
Threaded SCGI server
2003-11-04
htmltext as a string subtype
Jonathan Corbet
2003-10-31
> One way to buy back performance would be to make templates return
> TemplateIO objects rather than strings or htmltext objects.

I'm not sure I understand how this would work.  Is the idea that literal
strings would become strings again, and the TemplateIO object, somehow,
tracks whether each component string is "clean" or not?

I have a few places where I use templates to generate strings that do not
go straight into an http_response.  It would be a lot easier to fix those
with some explicit action, though, than to be forever sprinkling str()
calls through my code.  If I understand the change correctly, I think I
like it.

jon

reply