Kragen Sitaker ([info]kragen) wrote in [info]dtm,
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...


Advertisement


(Read 10 comments)

Post a comment in response:

From:
(will be screened)
Help(will be screened)
Identity URL: 
Username:
Password:
Don't have an account? Create one now.
Subject:
No HTML allowed in subject
   Help
Message:

 
Notice! This user has turned on the option that logs your IP address when posting. Help
Create an Account
Forgot your login or password?
Login w/ OpenID
English • Español • Deutsch • Русский…