I have a question in using helix dom server: My idea is to use it to create several static pages that can be hosted on github pages, because it has the advantage of being able to be properly indexed by google and others. My question then is if this pages can use clojurescript inside of them? So what I am asking if the outputted pages will do the hydration correctly? Thanks!
There isn't any support for JVM server-side rendering at this time. You can render your pages by making a Node.js script to take a helix component tree and output a static file. You could also have a separate CLJS build for client-side code whose results are included with your static HTML files. You would simply have a script tag that includes the JS bundle result. You could also explore the host of frameworks in the JS world for doing this type of thing, like Gatsby, Next.js, Remix, etc. but I'm not super familiar with them and not sure how the CLJS build toolchain would fit in with them.
Oh! Isnt there Graal with js engine already?
Thanks in any case!
I haven't tried Graal with helix, if you give it a whirl let me know how it goes!
I wouldn't expect it to be easy