Open K1D77A opened 1 year ago
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.)
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!]")
The hx-
prefix now supported by default.
A future addition could be the addition of the HTMX tags https://htmx.org/