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