ext_3000 ([identity profile] kragen.livejournal.com) wrote in [personal profile] dtm 2007-04-23 11:00 pm (UTC)

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...

Post a comment in response:

This account has disabled anonymous posting.
If you don't have an account you can create one now.
HTML doesn't work in the subject.
More info about formatting