Skip to content

Provide Template Tag to generate data-reflex html attributes #59

Open
@JulianFeinauer

Description

Feature Request

Currently reflex attributes have to be hand-craftet inside the templates. A custom tag could help users to get these right.

Is your feature request related to a problem?

No

Describe the solution you'd like

I suggest a template tag like: {% stimulus 'lazy_load_reflex#increment' count=count increment=1 %}
which would be used in a Template like

<a  href="#" {% stimulus 'lazy_load_reflex#increment' count=count increment=1 %}>Increment {{ count }}</a>

and would generate the following HTML (formatted differently)

<a  href="#"
        data-reflex="click->Lazy_LoadReflex#increment"
        data-count="0"
        data-increment="1"
>Increment {{ count }}</a>

PR link

#60

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions