Optimal Dream Folder Structure

Since you are using both Dream and htmx you may be interested in my example here: dream-html/app at todoapp · yawaramin/dream-html · GitHub

This shows an organizational pattern called ‘nested routes’ (lifted from Remix and Ember.js) that works pretty well with htmx. The dream-html library itself has a few niceties like a fairly large and complete set of HTML and htmx combinators, plus type-safe routes made with OCaml’s format strings, and form decoding. I’m using this in a side project and it all works pretty well: [ANN] Cmarkit 0.4.0 - CommonMark parser and renderer for OCaml - #9 by yawaramin

1 Like