Consider the case of a dynamic page, like a web-based email reader. Something where there's a ton of data that is transformed into HTML in some sophisticated way. There's a range of ways to do it:
Web 1.0 way: Read everything into PHP memory, process, output into static HTML with links.That works fine, except every time you do anything you need to ask the server to regenerate the page. Which leads to:
As a result, I'd like is some combination of the two where the same code and execution engine is used on both the server *and* client. Then the process would go like:
2) Server generates HTML DOM according to whatever logic
5) The exact same code that was initially used by the server to generate the page is used by the browser to manipulate that page.
Does something like this exist? I see lots of stuff up on Wikipedia, but none of it quite fits the bill.