35
35
req: An IVLE request object. Reads attributes such as title. Also used to
38
39
# Write the XHTML opening and head element
39
40
# Note the inline JavaScript, which provides the client with constants
40
41
# derived from the server configuration.
45
46
req.write("""<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
46
47
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
47
48
<html xmlns="http://www.w3.org/1999/xhtml">
50
51
<meta http-equiv="Content-Type" content="%s; charset=utf-8" />
51
52
<script type="text/javascript">
55
55
""" % (titlepart, req.content_type,
59
64
# Write any app-specific style and script links