Open
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
Metadata
Assignees
Labels
No labels
Activity