Get the latest tech news

Dream-HTML – render HTML, SVG, MathML, Htmx markup from OCaml


Render HTML, SVG, MathML, htmx markup from your OCaml Dream backend server - yawaramin/dream-html

Dream's built-in eml (Embedded ML) has some drawbacks like no editor support, quirky syntax that can be hard to debug and refactor, and manual dune rule setup for each view file In general string-based HTML templating is suboptimal and mostly driven by familiarity. Attribute and text values are escaped using rules very similar to standards- compliant web browsers: Many web pages don't strictly conform to the rules of correct HTML markup, so you will likely need to fix those issues for your build to work.

Get the Android app

Or read this on Hacker News

Read more on:

Photo of HTML

HTML

Photo of SVG

SVG

Photo of mathml

mathml

Related news:

News photo

HTML-first, framework-agnostic implementation of shadcn/UI – franken/UI

News photo

Show HN: A JavaScript library for data visualization in both SVG and Canvas

News photo

How to think about HTML responsive images