def render(session): tpl = """<a href="/inc">+</a> {} <a href="/dec">-</a>""" return response.html(tpl.format(session['counter']))