I am using django templating, and for readability I have html that looks similar to the following:
{% if some_variable %} text {% else %} nothing exi
django-htmlmin package is a awesome, it provides a lot of control and features moreover it supports HTML 5.