Back when Ajax was a hip new thing someone asked me why xml? We later answered that question with JSON of course but his hypothetical solution was much more hilarious. I'm calling it the html database. He made two mockups. One where everything was a richly formatted static html file and one that used a blogging platform. It had things like archives by month each with their own url. A paginated front page with chunk from each posting.
It was pretty funny and I couldn't really see something wrong with it.
In his demo he pulled in a document with a table in it and inserted the table into a div. One version used the domparser but he also made one with <!-- table start --> and <!-- table end --> and chopped out a substring.
In the 80's, because of resource constraints, a standard thing to ask was "why is my data not formatted the way I need it?"
IOW when to format it properly? when it is created? When it is consumed? Both? At some other time?
If you are going to create it one time and consume it 100 000 times html is a great "DB"
It was pretty funny and I couldn't really see something wrong with it.
In his demo he pulled in a document with a table in it and inserted the table into a div. One version used the domparser but he also made one with <!-- table start --> and <!-- table end --> and chopped out a substring.
In the 80's, because of resource constraints, a standard thing to ask was "why is my data not formatted the way I need it?"
IOW when to format it properly? when it is created? When it is consumed? Both? At some other time?
If you are going to create it one time and consume it 100 000 times html is a great "DB"