diff -r 82df0bb66ca7 -r 71ab68f31a1c sites/irclogs.qmsk.net/handlers.py --- a/sites/irclogs.qmsk.net/handlers.py Sat Feb 07 21:02:33 2009 +0200 +++ b/sites/irclogs.qmsk.net/handlers.py Sat Feb 07 21:21:10 2009 +0200 @@ -2,18 +2,26 @@ Our URL action handlers """ +from lib import template + +templates = template.TemplateLoader("sites/irclogs.qmsk.net/templates") + def index (request) : """ The topmost index page, display a list of available channels, perhaps some general stats """ - - pass + + return templates.render_to_response("index") def channel_view (request, channel) : """ The main channel view page, display the most important info, and all requisite links """ + return templates.render_to_response("channel", + channel_name = channel, + ) + pass def channel_last (request, channel, lines, type) :