<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Web on Syaiful Bahri</title><link>https://www.sbahri.com/tags/web/</link><description>Recent content in Web on Syaiful Bahri</description><generator>Hugo</generator><language>en-us</language><lastBuildDate>Tue, 11 Aug 2026 00:00:00 +0000</lastBuildDate><atom:link href="https://www.sbahri.com/tags/web/feed.xml" rel="self" type="application/rss+xml"/><item><title>How to Embed Static Files in OCaml</title><link>https://www.sbahri.com/notes/embed-static-files-ocaml/embed-static/</link><pubDate>Tue, 11 Aug 2026 00:00:00 +0000</pubDate><guid>https://www.sbahri.com/notes/embed-static-files-ocaml/embed-static/</guid><description>&lt;p&gt;I love how Go lets me &lt;a href="https://pkg.go.dev/embed"&gt;embed&lt;/a&gt; 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.&lt;/p&gt;
&lt;p&gt;Recently I was working on a project in OCaml and I wanted to do the same thing. I found a library called &lt;a href="https://github.com/mirage/ocaml-crunch"&gt;ocaml crunch&lt;/a&gt;.
This library does exactly what I wanted — it allows converting a filesystem into a static OCaml module.&lt;/p&gt;</description></item></channel></rss>