A minimal server-side rendering (SSR) and client-side hydration setup using OCaml with MLX.
public/index.htmlcontains our base template with static assets- Vite bundles this into
dist/index.htmlwith processed assets GenerateRootTemplate.mltakesdist/index.htmland creates a template function that preserves all assets:let render content = "..." ^ content ^ "..."
bun install
dune pkg lock
bun run build
dune build
dune exec src/server/Main.exe