Tree-based (HTML based) web platform?

Anyone who writes client-side JavaScript is familiar with the DOM, a tree structure that your browser references in the memory generated from the HTML it received from the server. JavaScript can add, remove, and modify nodes in the DOM tree to make changes to the page. I am very pleased to work (with browser errors) and very different from how my server code should generate the page in the first place.

My question is: which server framework / languages ​​create the page, viewing it as a DOM tree from the very beginning - inserting nodes instead of echo strings? I think it would be very useful if the client and server code saw the page the same way. You could, of course, hack something like that in any web server language, but a structure designed to create a page in this way could make some very nice optimizations.

Open source, being widely deployed and having some time, will be a plus.

+3
source share
4 answers

Rhino on Rails, , . , Aptana Jaxer, RnR (Rails), Jaxer - .

+2

AJAX Aptana Jaxer - , JS.

, , , .

+2

Jaxer - javascript + DOM. jaxer , .

java, php,... xpath DOM.

0

I see where you are from and where, but this is all a bit of a debatable issue. You cannot send anything other than the displayed content to the browser, and you need to do everything all at once (AJAX aside). There is no value from what you offer (from what I see), even if you built it like a tree, you still only create a page that is sent to order to the client.

-1
source

Source: https://habr.com/ru/post/1696436/


All Articles