project Elixir Phoenix NimblePublisher

saschabrink.com

This site — a Phoenix LiveView app compiled to static HTML at deploy time.

A personal site built with Phoenix LiveView that compiles to static HTML. No JavaScript framework, no build step beyond what Phoenix already does.

Why static?

LiveView is great for interactivity, but a personal blog doesn’t need a live server. By rendering each route with Plug.Test and writing the HTML to disk, I get the DX of LiveView with the simplicity of static hosting.

How it works

A custom Mix task walks the router, requests each route via a test connection, and writes the response to _site/. The result is plain HTML that deploys anywhere.