r/purescript • • 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

4 comments sorted by

View all comments

Show parent comment

1

u/nae_dawg Aug 14 '22

I'm new to purescript and functional programming generally and I have been trying purescript-halogen-vdom-string-renderer to work.

Is there a way to write halogen html or html in a similar dsl / syntax as halogen or elm does ( without the events ) and have that be rendered to a string instead of writing vdom elements