{% if session %}
<p>Hello, {{session['display_name']}}! <a href="/logout">Log out</a></p>
<p><code>{{session}}</code></p>
{% else %}
<p>Hello, stranger! <a href="/login/twitter">Log in with Twitter</a></p>
{% endif %}