helix

awb99 2024-10-28T15:04:32.597919Z

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!

lilactown 2024-10-28T21:12:22.320149Z

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.

awb99 2024-10-28T23:49:57.615549Z

Oh! Isnt there Graal with js engine already?

awb99 2024-10-28T23:50:55.865529Z

Thanks in any case!

lilactown 2024-10-29T15:59:38.066159Z

I haven't tried Graal with helix, if you give it a whirl let me know how it goes!

lilactown 2024-10-29T15:59:50.786979Z

I wouldn't expect it to be easy