TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

CSS as the back end – Cascading Server Sheets

141 pointsby ritabratamaitiabout 3 years ago

12 comments

wwwestonabout 3 years ago
After deep-diving on front-end stuff in the late 2000s, I got enamored with the idea of a templating engine that would let you <i>address</i> content into places in the document rather than strain it in via placeholders.<p>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.<p>[0] <a href="http:&#x2F;&#x2F;weston.canncentral.org&#x2F;web_lab&#x2F;CAST&#x2F;about.html" rel="nofollow">http:&#x2F;&#x2F;weston.canncentral.org&#x2F;web_lab&#x2F;CAST&#x2F;about.html</a> <a href="https:&#x2F;&#x2F;github.com&#x2F;westonc&#x2F;CAST&#x2F;" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;westonc&#x2F;CAST&#x2F;</a>
评论 #30522154 未加载
评论 #30522593 未加载
DoctorOWabout 3 years ago
I&#x27;m glad this isn&#x27;t on Github because I&#x27;d be so tempted to add features to it. I keep getting ideas, none of which would make this framework not a mistake.
评论 #30521331 未加载
compressedgasabout 3 years ago
Cascading Tree Sheets <a href="https:&#x2F;&#x2F;dspace.mit.edu&#x2F;handle&#x2F;1721.1&#x2F;87014" rel="nofollow">https:&#x2F;&#x2F;dspace.mit.edu&#x2F;handle&#x2F;1721.1&#x2F;87014</a> would fit so nicely with this.
alephnanabout 3 years ago
People are laughing at this, but it&#x27;s less dumb than the adjacent project when I was still at a certain BigTech.<p>They were implementing a &quot;3rd party platform&quot; 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&#x27;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.<p>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 ).
ehntoabout 3 years ago
Does this make Emmet a higher-level scripting language?<p>Thinking about that seriously, I would love an Emmet style tool for quick class outlining. Not that it&#x27;s a big issue. SomeClass&lt;SomeBaseClass::someFunc(arg1,arg2)::anotherFunc(arg1:type) tab to complete.<p>For anyone not sure what Emmet is <a href="https:&#x2F;&#x2F;www.emmet.io&#x2F;" rel="nofollow">https:&#x2F;&#x2F;www.emmet.io&#x2F;</a><p>It autocompletes something like `ul.the-class&gt;li*3` into<p><pre><code> &lt;ul class=the-class&gt; &lt;li&gt;&lt;&#x2F;li&gt; &lt;li&gt;&lt;&#x2F;li&gt; &lt;li&gt;&lt;&#x2F;li&gt; &lt;&#x2F;ul&gt;</code></pre>
lxeabout 3 years ago
This is what Web3 should be
system2about 3 years ago
I wish I had the time and patience to come up with something like this.
abathurabout 3 years ago
Since this thread is probably catnip for a certain kind of person...<p>Anyone have a term for &quot;a CSS&quot; 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.<p>For a silly example, imagine there&#x27;s a CSS with properties and functions for describing tacos.
评论 #30522044 未加载
评论 #30526798 未加载
评论 #30521990 未加载
elpakalabout 3 years ago
April fool&#x27;s is one month away not today...
tmccrary55about 3 years ago
<i>shudders</i>
fabiancookabout 3 years ago
Pretty cool exercise to go through!
encryptluks2about 3 years ago
This relies on JS... so really not CSS magic at all.
评论 #30523260 未加载