Uploaded December 2025 | Updated December 2026, 7 hours ago
✨ This talk was recorded at Lambda Days in June 2025. If you're curious about our upcoming event, check lambdadays.org ✨
Your Website as a Function From URL to HTML
Building websites seems straightforward. You pick a static site generator and start writing content. However, these websites quickly grow into full-blown software projects. Suddenly, your SSG – its rigid template system, scattered configuration and ad-hoc Markdown – is holding you back for its lack of proper abstraction mechanisms.
In this talk, we start fresh. Our design approach is driven by one simple insight: Static websites are just functions mapping URLs to HTML. This marks the beginning of our journey in developing our own SSG. In the end we arrive at a bespoke domain-specific language in OCaml.
While this exploration may sound theoretical – or even playful – it has substantial practical implications. By treating our website as a function, we can embrace robust engineering practices: clearly separating domain logic from presentation, following the single-responsibility principle, reducing coupling, and ensuring cohesion.
Let's keep in touch! Follow us on:
💥BlueSky: https://bsky.app/profile/lambdadays.bsky.social
💥LinkedIn: linkedin.com/company/lambda-days
💥Facebook: facebook.com/lambdadays
💥Mastodon: https://genserver.social/codesync
💥Twitter: twitter.com/LambdaDays
✨ This talk was recorded at Lambda Days in June 2025. If you're curious about our upcoming event, check lambdadays.org ✨
Your Website as a Function From URL to HTML
Building websites seems straightforward. You pick a static site generator and start writing content. However, these websites quickly grow into full-blown software projects. Suddenly, your SSG – its rigid template system, scattered configuration and ad-hoc Markdown – is holding you back for its lack of proper abstraction mechanisms.
In this talk, we start fresh. Our design approach is driven by one simple insight: Static websites are just functions mapping URLs to HTML. This marks the beginning of our journey in developing our own SSG. In the end we arrive at a bespoke domain-specific language in OCaml.
While this exploration may sound theoretical – or even playful – it has substantial practical implications. By treating our website as a function, we can embrace robust engineering practices: clearly separating domain logic from presentation, following the single-responsibility principle, reducing coupling, and ensuring cohesion.
Let's keep in touch! Follow us on:
💥BlueSky: https://bsky.app/profile/lambdadays.bsky.social
💥LinkedIn: linkedin.com/company/lambda-days
💥Facebook: facebook.com/lambdadays
💥Mastodon: https://genserver.social/codesync
💥Twitter: twitter.com/LambdaDays










