2
from paste.deploy import CONFIG
4
def application(environ, start_response):
5
# Note that usually you wouldn't be writing a pure WSGI
6
# application, you might be using some framework or
7
# environment. But as an example...
8
start_response('200 OK', [('Content-type', 'text/html')])
9
greeting = CONFIG['greeting']
11
'<html><head><title>%s</title></head>\n' % greeting,
12
'<body><h1>%s!</h1>\n' % greeting,
15
items = environ.items()
17
for key, value in items:
18
content.append('<tr><td>%s</td><td>%s</td></tr>\n'
19
% (key, cgi.escape(repr(value))))
20
content.append('</table></body></html>')