4 ms·
I've been wondering about this recently too. I really want something that does almost everything server-side, like the old handlebars-style templates, but allow
by IshKebab 6y ago
I've been wondering about this recently too. I really want something that does almost everything server-side, like the old handlebars-style templates, but allows a modern component based page structure.
I guess React SSR is probably the closest thing to that but (without having used it) I'm guessing it is full of caveats given that React wasn't originally designed to work that way.
I wish there was something that was, and also was written in a language other than Typescript.
- Tade0 6y agoThe main caveat is that you have to create alternative paths for situation where the thing is rendered on the server and client side - browser APIs are not available in the former case. As for other options: Vue.js offers something like this with Nuxt.js. There's also this: https://sapper.svelte.dev https://sapper.svelte.dev Interesting and pleasant, but still 0.x.x, so caveat emptor.
- Legogris 6y agoEverything old is new again.
- jaredcwhite 6y agoWe're building that. https://beta.bridgetownrb.com https://beta.bridgetownrb.com Use Liquid template components on the server-side that render out to static HTML, and for any interactive bits you can "hydrate" them with something like LitElement-based Web Components. A heavy SPA approach using React is simply not necessary for many types of sites.
- deleted 6y ago[deleted]