The code is in http://pobox.com/~kragen/sw/laptoptable.py now, and reading over it I notice that I'm not sure whether that's what I did or not.
Because it's like Nevow, it doesn't really have a separate textual template as such --- it just has a tree of elements, each of which includes its children rendered as HTML. The <script> tag renders its children differently --- it just asks them to convert themselves to strings rather than HTML --- because it has a CDATA content model in the HTML DTD.
You could treat "Search results for #{term}:" as syntactic sugar for ["Search results for ", as_html(term), ":"] though. Hmm...
no subject
Because it's like Nevow, it doesn't really have a separate textual template as such --- it just has a tree of elements, each of which includes its children rendered as HTML. The <script> tag renders its children differently --- it just asks them to convert themselves to strings rather than HTML --- because it has a CDATA content model in the HTML DTD.
You could treat "Search results for #{term}:" as syntactic sugar for ["Search results for ", as_html(term), ":"] though. Hmm...