News for hackers. Stuff that matters.
Re:Ask HN: Is Accidental Complexity Growing Faster Than Esse... by aurelianito on Sunday March 26, 2017 @11:58PM (#13965090)
> Is there a paradigm/language that allows you to write the same templates for both the server side and SPA view?

That's the main motivation behind my web framework Sandro. It is just an experiment, but I do just that!

See https://bitbucket.org/aurelito/sandro and https://bitbucket.org/aurelito/sandro-lib

It uses rhino and domino to render server side using the DOM API. I am busy with work that pays my bills, but I would love if I were able to work full-time in it ;).

Re:Ask HN: Is Accidental Complexity Growing Faster Than Esse... by daliwali on Tuesday March 28, 2017 @02:29AM (#13974554)
Server side rendering can be done with any JS framework, though often one must compromise performance by using a more heavyweight implementation like jsdom, or some custom implementation if the framework provides it.

Also I have done something similar using domino: https://simulacra.js.org/#server-side-rendering