{% spaceless %} {% for operation in diff_operations %} {% ifequal operation.operation "replace" %} {{ operation.deleted }} {{ operation.inserted }} {% endifequal %} {% ifequal operation.operation "delete" %} {{ operation.deleted }} {% endifequal %} {% ifequal operation.operation "insert" %} {{ operation.inserted }} {% endifequal %} {% ifequal operation.operation "equal" %} {{ operation.inserted }} {% endifequal %} {% endfor %} {% endspaceless %}