3 ms·
I'll probably get flamed for this, but I often fall into wishing there was xml ontologies + formatting rules. Skipping the HTML layer entirely. Be model-centric
by agumonkey 15y ago
I'll probably get flamed for this, but I often fall into wishing there was xml ontologies + formatting rules. Skipping the HTML layer entirely. Be model-centric instead of html centric.
"model" presentation
------- ------------
<div class="order"> .order { .. }
<h1 class="agent">...</h1> .agent { .. }
here your model has turned into html, yet has to be
re-expressed as presentation rules. your model is
presentation. WAT.
=>
<order> order { render: box }
<agent> agent { font: ... }
I'm sure it's been done many times before but I've never read about why it failed.
- matzipan 15y agoThat's exactly what we have in mind. The thing is <div> and <h1> are just presentation tags, when, in fact, you are styling them with css too. In hss object model, everything is a box. How it is styled and how it behaves it's up to you. There will be an HSS framework, which will provide basic capabilities like heading, dropdown, radio. We are proposing a syntax like order { isA: heading }
- agumonkey 15y agoMaybe in the future the box model will be one `dsl` in a larger rendering system that borrows from stack based 2d, matrix based 3d. So you can use what fits best when it fits best. edit : Traces of this are in place, js based advanced layouts , webgl, canvas. It's just non composable right now.