cferdinandi / reef

A lightweight library for creating reactive, state-based components and UI.
https://reefjs.com
MIT License
1.16k stars 77 forks source link

Can I use Reef to generate the HTML for a given route? #172

Closed shooftie closed 1 year ago

shooftie commented 1 year ago

I have recently come across a need to create static instances of the pages that are currently being driven by Reef.

I wonder whether you would have any suggestions as to how I might generate a .html file for a given route with:

I realise that this is not necessarily the purpose of Reef but it would save me having to add more weight to the project for this one requirement.

cferdinandi commented 1 year ago

Reef is very much focused on progressively enhancing dynamic UI. For static rendering, I tend to either hard code my HTML files, or use a static-site generator like Hugo or 11ty.