{% with messages = get_flashed_messages() %} {% if messages %}

Error

{% for message in messages %} {{ message }}

{% endfor %} back

{% else %}

Matching tweets from {{ user }}

back {% for tweet in tweets %}

twitter logo {{ tweet.date }}

{# We want to keep the tags in the raw text, the rest is already escaped for us by Twitter #} {% autoescape false %}
{{ tweet.text }}
{% endautoescape %} {% endfor %} {% endif %} {% endwith %}