How to Embed Static Files in OCaml
I love how Go lets me embed static files into a binary. This solves the problem of bundling HTML templates, CSS, JavaScript, and even SQL migration files — no need to ship separate files and folders.
Recently I was working on a project in OCaml and I wanted to do the same thing. I found a library called ocaml crunch. This library does exactly what I wanted — it allows converting a filesystem into a static OCaml module.