Htmx/htmlact web development approach

Yeah, you’re right on that point.

I’m using tyxml for 99% of my HTML generation, specifically its jsx ppx. I am judicious about keeping the main logics of the project in OCaml proper; .re files exist exclusively to hold markup. The end result is a very pleasant environment IMO. In the end, I dearly wish there was a way to get actual HTML syntax into .ml files (I am no fan of reason syntax outside of jsx, and I suspect the sorta-legacy jsx toolchain leftover from reasonml will end up being a tech risk over time), but as things stand, it’s the best option I’ve found.

5 Likes