package html_of_jsx

  1. Overview
  2. Docs

Enable Htmx attributes

(Experimental)

Support htmx properties as attributes in all HTML elements

Enable the htmx mode

Adding the -htmx flag into the ppx

  (libraries html_of_jsx)
  (preprocess (pps html_of_jsx.ppx -htmx))

Example

JSX.render(<div hx_boost=true />)

The htmx attributes are scoped with the prefix hx_

OCaml

Innovation. Community. Security.