mikesol / purescript-deku

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

Make a router that automatically detects and builds assets for SSR #58

Closed mikesol closed 2 weeks ago

mikesol commented 1 year ago

The SSR build process is currently clunky. It could be made a lot better by using a router that automatically emits assets.

I like routing-duplex, and I think it'd be possible to hook into this in order to create and bundle the assets. We could come up with a Link tag à la Nextjs that acts as a drop-in replacement for a and takes care of internal navigation.