# HG changeset patch # User Jeff Hammel # Date 1341970786 25200 # Node ID 0a829ad6e116db2c501b36c17dc2a0f7ae570b8b # Parent aae0a420c4f7dac6be2ac55bd7a3c824590e509e more basic web stuff diff -r aae0a420c4f7 -r 0a829ad6e116 talosnames/templates/index.html --- a/talosnames/templates/index.html Tue Jul 10 18:36:50 2012 -0700 +++ b/talosnames/templates/index.html Tue Jul 10 18:39:46 2012 -0700 @@ -1,6 +1,11 @@ - +Talos Names + diff -r aae0a420c4f7 -r 0a829ad6e116 talosnames/web.py --- a/talosnames/web.py Tue Jul 10 18:36:50 2012 -0700 +++ b/talosnames/web.py Tue Jul 10 18:39:46 2012 -0700 @@ -20,13 +20,14 @@ def __call__(self, environ, start_response): request = Request(environ) - response = Response(content_type='text/plain', + response = Response(content_type='text/html', body=self.render()) return response(environ, start_response) def render(self): template = tempita.HTMLTemplate(self.template) - return template.substitute({}) + data = {} + return template.substitute(data) if __name__ == '__main__': from wsgiref import simple_server