Mechanics

Speed by caching

Pages render from the files when they are asked for, and the result is kept until a file beneath it changes. Fast, without a second copy of the truth.

What it means

There is no build step. A page is produced when it is requested, from the files as they are at that moment: the entity is read, its references resolved, the template applied. Static-site generators rebuild everything on every change; compiled systems bake a graph on publish. Both buy fast reads with a second copy of the truth — one that can be stale, half-built or out of step.

Loam keeps one copy, and caches what it derives from it. A cache is disposable and never consulted for truth.

How loam does it

What it costs

Work per request instead of per change: a few file reads and a template whenever a page is not in the cache. For hundreds of pages and a change a day, that is milliseconds. And because every page carries a fresh security nonce, HTML is not cached at the edge — each page view reaches the server, where the render cache answers it. Millions of pages and a change a second would want a different trade.

Next: Fine-grained permissions