r/purescript • u/DeepDay6 • Aug 01 '22
[how to] Generate server-side HTML
I'm about to learn PureScript, coming from a functional TypeScript, Clojure and Elm background. To get a first taste for the language I thought I'd rewrite my Clojure test-app which generates static HTML files from JSON input using the hiccup templating library.
Is there some similar library in PureScript which would provide functions to create an HTML document and its content? Something similar to Haskell's blaze? I could not find anything when searching pursuit, but I might be just be using the wrong search terms.
3
Upvotes
View all comments
Show parent comment
3
u/chandru89new Aug 02 '22
From your description of it (ie generate static HTML files from JSON data), I think what you're asking for is called "static site generation".