I'm building a website using the Flask Framework and I now run into an error which I don't understand. For the simple base.html file I pasted below I'm gettig a TemplateSyntaxError: expected token 'end of statement block', got 'session'
, even though I clearly end the if with the {% endif %}
.
Does anybody know what I'm doing wrong here?
<!doctype html>
<div class="page">
<div class="metanav">
{% if not in session.logged_in %}
aa
{% endif %}
</div>
</div>