djLint/tests/source_django/attrs.html
2021-12-14 09:57:37 +01:00

6 lines
201 B
HTML

{% for name, value in widget.attrs.items %}
{% if value is not False %}
{{ name }}
{% if value is not True %}="{{ value|stringformat:'s' }}"{% endif %}
{% endif %}
{% endfor %}