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