mikesol / purescript-deku

A PureScript web UI framework
https://purescript-deku.surge.sh/
Apache License 2.0
123 stars 12 forks source link

how to do static site rendering? #108

Closed xshadowlegendx closed 8 months ago

xshadowlegendx commented 8 months ago

hello so I was looking at the guide and trying out some code but still do not understand how to do static site rendering, so say I have 3 pages, home, about and contact page, is it I have to do runSSR to get text content of those pages, and since runSSR seems to output the content with body tag, I would have to put them into html block with appropriate headers and stuff and then use writeFileText from Node.FS.Sync to write them to dist/[page]/index.html?

and how does the Main.purs looks like and usage with vite in development , is it able to run code with writeFileText since it is not available in browser environment