package html_of_jsx

  1. Overview
  2. Docs
Render HTML with JSX

Install

dune-project
 Dependency

Authors

Maintainers

Sources

html_of_jsx-0.0.6.tbz
sha256=7f4aeaaa9df466b72ab2bf14bcc1b908789c67187781cb4c78ee5eb7d22697d8
sha512=31ef6fa8e80dac79d8806c08a64a5cb600f703309417bff917bfc8a6b72237383493eb3c13aade3059b17f0e3102aeba9cb358934c6f1541749ea9443037d791

doc/htmx.html

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_