|
|
|
|
|
by recursivedoubts
534 days ago
|
|
most structured-data to UI systems I have seen produce pretty bad, generic user interfaces the innovation of hypermedia was mixing presentation information w/control information (hypermedia controls) to produce a user interface (distributed control information, in the case of the web) i think that's an interesting and crucial aspect of the REST network architecture |
|
1) you write your web page in HTML
2) where you fetch data from a server and would normally use JS to render it you'd instead have an HTML attribute naming the "schema" to use to hydrate the data into HTML which would happen automatically, with the hydrated HTML incorporated into the page at some named location.
The schema would be something like XSLT/XPath, but perhaps simpler, and it would support addressing JSON/CBOR data.