frameable / el

Minimal JavaScript application framework / WebComponents base class
MIT License
249 stars 10 forks source link

SSR #6

Open AustinGil opened 1 year ago

AustinGil commented 1 year ago

This looks awesome. Is there already (or planned) a story around SSR support?

TobiasNickel commented 9 months ago

how would that look like? having webcomponents be removed to turn into the inner html as string? but somehow still be there to get hydrated? I think you could make a method that executes the render methods in node.js to produce html without webComponent tags. not sure how this would be done when it is nested.

I think a lib like this is only useful in the client. I think it is a great match with technologies such as ´htmx´. What are your thoughts?

AustinGil commented 9 months ago

Yeah, that's a tricky one. I think most SSR solutions for other frameworks result in a meta framework like Next, Nuxt, etc. That may not be the ideal direction. Might be worth looking at https://enhance.dev/