package html_of_jsx

  1. Overview
  2. Docs
Render HTML writing JSX

Install

Dune Dependency

Authors

Maintainers

Sources

html_of_jsx-0.0.2.tbz
sha256=24dc2b9e3726b99d9b0d218289222e7ca66a7250432dc202ecc1b8da4efba0e7
sha512=c06d87f7e9208dcd7e0ff054c4f2c69d89711474d0da8a43496e3da46c3978a85471e750183fb423e7531efb9fbe5fa432a6729853e49d3226d5eb5ac39b459f

CHANGES.md.html

Changes

0.0.2

  • Add Jsx.unsafe to allow unsafe HTML as children

  • Fix HTML attributes formatting (charset, autocomplete, tabindex, inputmode, etc...)

  • Enable HTMX attributes via html_of_jsx.ppx -htmx

0.0.1

  • First working version of the ppx and library

  • Supports most of features from JSX (uppercase components, fragments, optional attributes, punning)

  • but with a few improvements (lowercase components, no need to add annotations)

  • No React idioms (no className, no htmlFor, no onChange, etc...)

  • Type-safe, validates attributes and their types (it can be better thought)

  • Minimal

    • Html_of_jsx.render to render an element to HTML

    • Jsx.* to construct DOM Elements and DOM nodes (Jsx.text, Jsx.int, Jsx.null, Jsx.list)

  • Works with Reason and mlx

  • Supports some htmx under the ppx (html_of_jsx.ppx -htmx)

OCaml

Innovation. Community. Security.