{% for attr in attrs.items %} {{ attr.0 }}{% if attr.1 != True %}="{{ attr.1 }}"{% endif %}{% endfor %}