Skip to content

Add {% attrs %} tag to generate attributes without field #151

@christophehenry

Description

@christophehenry

The attr filter is nice to append HTML attributes to form fields but it would be nicer being able to also use it without fields like this:

{% attr "data-test-thing:test-value" as attr_dict %}
<section {{ attr_dict }}>
…
</section>

I couldn't find this feature request in the open tickets. Please excuse if this is a duplicate.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions