Pure_html.Hxhtmx 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_attrval post : _ string_attrval on_ : event:string -> _ string_attrThe 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_attrval select : _ string_attrNote that the value of this attribute is not escaped as it may include a CSS selector.
val select_oob : _ string_attrNote that the value of this attribute is not escaped as it may include a CSS selector.
val swap : _ string_attrNote that the value of this attribute is not escaped as it may include a CSS selector.
val swap_oob : _ string_attrNote that the value of this attribute is not escaped as it may include a CSS selector.
val target : _ string_attrNote that the value of this attribute is not escaped as it may include a CSS selector.
val trigger : _ string_attrNote that the value of this attribute is not escaped.
val vals : _ string_attrNote that the value of this attribute is not escaped.
val boost : bool to_attrval confirm : _ string_attrval delete : _ string_attrval disable : attrval disabled_elt : _ string_attrval disinherit : _ string_attrval encoding_formdata : attrHardcoding of the hx-encoding attribute to multipart/form-data.
val ext : _ string_attrval headers : _ string_attrNote that the value of this attribute is not escaped.
val history_false : attrHardcoding of the hx-history attribute to false.
val history_elt : attrval include_ : _ string_attrval indicator : _ string_attrNote that the value of this attribute is not escaped as it may include a CSS selector.
val inherit_ : _ string_attrval params : _ string_attrval patch : _ string_attrval preserve : attrval prompt : _ string_attrval put : _ string_attrval replace_url : _ string_attrval request : _ string_attrNote that the value of this attribute is not escaped.
val sync : _ string_attrval validate : attrval preload : attrThe preload extension: https://htmx.org/extensions/preload/
val sse_close : _ string_attrval sse_connect : _ string_attrval sse_swap : _ string_attrval ws_connect : _ string_attrval ws_send : attrval __ : _ string_attrThis attribute serves as the _ attribute, which is used by Hyperscript. Note that the value of this attribute is not escaped.
val on : _ string_attrNote that the value of this attribute is not escaped.