if statement inside macros jinja2 code example
Example: jinja if
{% if 'priority' in data %}
<p>Priority: {{ data['priority'] }}</p>
{% endif %}
{% if 'priority' in data %}
<p>Priority: {{ data['priority'] }}</p>
{% endif %}