Tag Style Sheets #935
18a93a664c
started this conversation in
Ideas
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Using the same model as CSS, could you adapt the usage of htmx in the same manner?
For example, marking a button tag would resemble something like the following:
<button hx="_clicker" class="" id="">Click Me!</button>
What's going on here is the "hx" is similar to "class" and "id" in CSS. The underscore prepend would reference an entry in the TSS. In the tag style sheet, the full functionality of htmx would resemble something like the following:
You get the idea, right?
This cleans up tags that have a lot of htmx/hyperscript attached to them.
Beta Was this translation helpful? Give feedback.
All reactions