{% for col, label, ed in spec.cols %} {% if ed %} {% else %} {{ row[col] if row[col] is not none else "" }} {% endif %} {% endfor %}