I'm trying to write an if statement in jinja template:
{% for key in data %}
{% if key is 'priority' %}
<p>('Priority: ' + str(data[key])</p>
{% endif %}
{% endfor %}
the statement I'm trying to translate in Python is:
if key == priority:
print(print('Priority: ' + str(data[key]))
This is the error i'm getting:
question from:https://stackoverflow.com/questions/40620823/if-statement-in-jinja2-templateTemplateSyntaxError: expected token 'name', got 'string'