+def render_artlist(articles, db, actyear = None):
+ template = Templates(templates_path, db, actyear)
+ print 'Content-type: text/html; charset=utf-8\n'
+ print template.get_main_header()
+ print '<h2>Articles</h2>'
+ for a in articles:
+ print '<li><a href="%(url)s/uuid/%(uuid)s">%(title)s</a></li>' \
+ % { 'url': blog_url,
+ 'uuid': a.uuid,
+ 'title': a.title,
+ 'author': a.author,
+ }
+ print template.get_main_footer()
+