Pleased to announce the release of dream-html 3.5.2, which actually spawns a new package pure-html: pure-html 3.5.2 (latest) · OCaml Package
This package offers the same functionality as dream-html, except without a Dream dependency, so you can use whatever web server you like, or even use it for other applications than web servers. It works exactly the same way as dream-html, except the top-level module is Pure_html
:
open Pure_html
open HTML
let content = article [] [
p [] [txt "Header"];
p [] [txt "Body"];
]
pure-html has a runtime dependency only on the uri
package.
11 Likes
Thanks again @yawaramin for doing this! Much appreciated.
1 Like
[ANN] dream-html & pure-html 3.6.0
Hello, I am happy to announce the following changes:
- Added some htmx attributes that had been omitted. Now as far as I can tell we have complete coverage of all core attributes, additional attributes, and those used by core extensions.
- Add a
?header:bool
optional parameter to to_xml
and pp_xml
functions to conveniently render the XML header as part of the output.
3 Likes
[ANN] dream-html & pure-html 3.6.1, 3.6.2
A double announcement:
3.6.1: when in XML rendering mode, correctly render empty-value attributes as having an empty string value. Thanks to @jonsterling !
3.6.2: automatically switch to XML rendering mode when rendering SVG and MathML tags inside HTML rendering mode.
1 Like