Potential Future Feature: HTMX tags
K1D77A opened this issue · 3 comments
K1D77A commented
A future addition could be the addition of the HTMX tags https://htmx.org/
ruricolist commented
If you just want to turn off validation for attributes with an hx-
prefix, you can add it to *unvalidated-attribute-prefixes*
. (I actually added this originally for use with Intercooler.js, which htmx is apparently the replacement for.)
ispringle commented
Another option is to prepend data-
to the htmx tags, as all htmx tags have an equivalent data-
version as well. If you go this route you can then use the :dataset
pseudo tag that spinneret provides.
For example the htmx:
<div hx-post="/mouse_entered" hx-trigger="mouseenter">
[Here Mouse, Mouse!]
</div>
Would be
(:div
(:dataset
(:hx-post "/mouse_entered"
:hx-trigger "mouseenter"))
"[Here Mouse, Mouse!]")
ruricolist commented
The hx-
prefix now supported by default.