Ticket #4939 enhancement closed fixed
twisted.web lacks a built-in templating engine
|Reported by:||habnabit||Owned by:||glyph|
(diff, github, buildbot, log)
Description (last modified by glyph) (diff)
There's no templating engine for rendering things like error pages and directory listings.
I'm going to port over nevow.page.Element into twisted.web.template.
The goal for this should be to support the serialization idiom of HTML5, rather than XHTML. The implementation should not have to change much beyond the DOCTYPE declaraitons and xmlns attributes to support that though, as I understand it.
Eventually supporting XHTML (is it XHTML5 now?) should be possible as well since it's a couple of trivial serialization tweaks to the same DOM, but small bugs will be coped with better by an HTML5 parser (a little extra whitespace instead of a PARSE ERROR page in the browser).