I do not believe that Alexander answered the question.
The question is whether the Haskell web frameworks do server-side rendering of JS or JS-via-Haskell JavaScript vanilla (GHCJS, Fay, etc.). I understand that Yesod does not pre-render JS (i.e., it runs JS and serves the resulting HTML). Rather, Yesod does server-side HTML generation through thin (or blaze-html or clear, depending on your preference).
The only library I could find for server-side Haskell JS rendering (for Angular) is:
https://github.com/danchoi/ngrender
But he is still in beta.
If there are other libraries / solutions, I would like to hear about them. This is a problem for me. I want to use purescript-halogen on the client, but ... SEO.
Edit: For now, the best option would be to use nginx as your load balancer in front of your Haskell server using prerender.io to provide displayed JS pages for searching bots:
https://github.com/prerender/prerender
https://gist.github.com/thoop/8165802
Jason zoladz
source share