Pure_html.Hx
htmx support
The attributes in this module are arranged in the same order as on the reference page linked above.
Remember that you will also need the htmx script itself. The recommended way to get it is to download a copy and place it in your static assets directory, managed by dreamwork so that it is properly cached and version-hashed by its contents.
val get : _ string_attr
val post : _ string_attr
val on_ : event:string -> _ string_attr
The hx-on:*
set of attributes, where *
represents DOM events: https://htmx.org/attributes/hx-on/.
Note that the value of this attribute is not escaped.
val push_url : _ string_attr
val select : _ string_attr
Note that the value of this attribute is not escaped as it may include a CSS selector.
val select_oob : _ string_attr
Note that the value of this attribute is not escaped as it may include a CSS selector.
val swap : _ string_attr
Note that the value of this attribute is not escaped as it may include a CSS selector.
val swap_oob : _ string_attr
Note that the value of this attribute is not escaped as it may include a CSS selector.
val target : _ string_attr
Note that the value of this attribute is not escaped as it may include a CSS selector.
val trigger : _ string_attr
Note that the value of this attribute is not escaped.
val vals : _ string_attr
val boost : bool to_attr
val confirm : _ string_attr
val delete : _ string_attr
val disable : attr
val disabled_elt : _ string_attr
val disinherit : _ string_attr
val encoding_formdata : attr
Hardcoding of the hx-encoding
attribute to multipart/form-data
.
val ext : _ string_attr
val headers : _ string_attr
val history_false : attr
Hardcoding of the hx-history
attribute to false
.
val history_elt : attr
val include_ : _ string_attr
val indicator : _ string_attr
Note that the value of this attribute is not escaped as it may include a CSS selector.
val inherit_ : _ string_attr
val params : _ string_attr
val patch : _ string_attr
val preserve : attr
val prompt : _ string_attr
val put : _ string_attr
val replace_url : _ string_attr
val request : _ string_attr
val sync : _ string_attr
val validate : attr
val preload : attr
The preload extension: https://htmx.org/extensions/preload/
val sse_close : _ string_attr
val sse_connect : _ string_attr
val sse_swap : _ string_attr
val ws_connect : _ string_attr
val ws_send : attr
val __ : _ string_attr
This attribute serves as the _ attribute, which is used by Hyperscript. Note that the value of this attribute is not escaped.
val on : _ string_attr
Note that the value of this attribute is not escaped.