{% for line in diff %} {% if line.startswith('+') %}
{{line}}
{% elif line.startswith('-') %}
{{line}}
{% else %}
{{line}}
{% endif %} {% endfor %}