Commit graph

9 commits

Author SHA1 Message Date
c5ac450f21 feat: dynamic page regeneration (#24)
the asset system is reworked to support "dynamic" entries, where each
entry is a separate file on disk containing the latest generation's
headers+raw+gzip+zstd. when calling view.regenerate, it will look for
pages that had "export const regenerate" during generation, and render
those pages using the view system, but then store the results as assets
instead of sending as a response.

pages configured as regenerable are also bundled as views, using the
non-aliasing key "page:${page.id}". this cannot alias because file
paths may not contain a colon.
2025-08-11 22:43:27 -07:00
a8d7efe9ec chore: rework Clover Engine API, remove "SSR" term
"server side rendering" is a misleading term since it implies there is a
server. that isn't neccecarily the case here, since it supports running
in the browser. I think "clover engine" is cute, short for "clover html
rendering engine". Instead of "server side rendering", it's just rendering.

This commit makes things a lot more concise, such as `ssr.ssrAsync`
being renamed to `render.async` to play nicely with namespaced imports.
`getCurrentRender` and `setCurrentRender` are just `current` and
`setCurrent`, and the addon interface has been redesigned to force
symbols with a wrapping helper.
2025-08-02 22:22:07 -04:00
9f8c9fd3b6 format 2025-08-02 20:56:36 -04:00
c3f786b944 file viewer work 2025-08-02 20:56:36 -04:00
acefb22c6a finish q+a 2025-08-02 20:56:36 -04:00
b1d68a6041 experiment: streaming suspense implementation 2025-08-02 20:56:36 -04:00
7242c6eb89 fix all type errors 2025-06-07 17:01:34 -07:00
f841f766d2 restore clover ssr engine from the dead. comment the code a bit too. 2025-06-07 16:17:52 -07:00
8f6b474120 recover marko-runtime.ts and parts of ssr.ts 2025-06-07 03:46:14 -07:00