CSS as the back end – Cascading Server Sheets
dev.to
dev.to
Eventually, I wrote a library for it in PHP [0] and built a blog and another app or two around it. Never could seem to sell many people on the basic concept, though. Glad to see someone else had some similar ideas.
[0] http://weston.canncentral.org/web_lab/CAST/about.html https://github.com/westonc/CAST/
Someone using the Content Addressing Sheets feature of CAST would actually be adding an additional layer of separation:
* HTML - document structure with decorating attributes/semantics
* Content Addressing Sheet - determines where in the document computed content is displayed
* Domain Logic - determines values to be computed
The CAS is a CSS-like DSL that is very much not the backend host language (though it may invoke things defined within that language).
Will the same person author the HTML and CAS? Not necessarily, but it's certainly as plausible as someone authoring an HTML file with template syntax sprinkled around.
How generous of Pascal Thormeier to leave the window open for fun! :)
They were implementing a "3rd party platform" like Geocities where you can describe your webpages in YAML. This templating language lacked the composability and flexibility of HTML or Angular. Nodes in the tree mapped to custom built Angular.JS components. This is all arbitrary. You'd have to know the names of the components, which props to pass in. The implementation itself was built on top of Angular.JS instead of native vanilla JS and DOM manipulation. So basically they maintained a virtual DOM on top of Angular. All of this lived in an IFrame.
The competing solution was a sandbox where these 3rd party vendors could describe their UI sections in a limited subset of Angular, running in a security sandbox where data access is done through an API ( as opposed to providing components with tightly coupled and hard-coded data access ).
Thinking about that seriously, I would love an Emmet style tool for quick class outlining. Not that it's a big issue. SomeClass<SomeBaseClass::someFunc(arg1,arg2)::anotherFunc(arg1:type) tab to complete.
For anyone not sure what Emmet is https://www.emmet.io/
It autocompletes something like `ul.the-class>li*3` into
<ul class=the-class>
<li></li>
<li></li>
<li></li>
</ul>Anyone have a term for "a CSS" that is distinct from the official CSS specs? I.e., a term that communicates something re-uses CSS-the-syntax, but with a different set of properties and functions.
For a silly example, imagine there's a CSS with properties and functions for describing tacos.
``` shell: ‘hard’ | ‘soft’; temperature: 0 - 100 | ‘cold’ | ‘hot’ | ‘lukewarm’ ```
Edit: if this seems unreasonable, consider a large part of CSS relies on JS APIs just to exist or be usable at all.