Extreme Server Side Rendering
scd31.com
scd31.com
This is basically Elixir liveview, and it's awesome!
New-school SSR is similar to old-school SSR, but it does
involve a bit of front-end JavaScript logic. Generally, the
way it's implemented is that when the user will interacts
with the web page, the JS will make a request to the
back-end. Then, the back-end will return some HTML, and the
JS front-end will insert that HTML somewhere into the page.
This allows us to have dynamic pages, at the cost of having
to maintain some front-end logic.
Wouldn't it be nice if there was a better way?
Yes. It's called htmx[0].The key value htmx can provide (and maybe ParsleyJS for forms) is eliminating:
New-school SSR is similar to old-school SSR, but it does
involve a bit of front-end JavaScript logic.
Leveraging HTML5/CSS3/htmx/jQuery/ParsleyJS implies a browser can focus on its primary role - rendering content. When this approach is applicable, there is no "front-end logic" to maintain.