html_of_jsx

html_of_jsx is an implementation of JSX focused only to render HTML on the server, without React or any other library. It's a simple library (and a ppx) that allows you to write HTML in a declarative manner using the component model.

This library was born from server-reason-react, extracted and simplified to work with HTML5.

Installation

opan install html_of_jsx

Add it to your `dune` file

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

API

Jsx module that exposes some helpers to construct elements and Html_of_jsx to render them, the rest are functions with labelled arguments.

Overview

See the features page for all details