[web-devel] Cascading/Scoping via indenting/whitespace in Cassius

"Timo B. Hübel" t.h at gmx.info
Sun Apr 3 12:59:16 CEST 2011


one of my most loved features in SASS is automatic scoping/cascading via 
indenting/significant whitespace.

Consider the following SASS code:

     color: red

     color: blue

Sass does automatically cascade the two p definitions in the resulting CSS:

#header p { color: red; }
#content p { color: blue; }

Is this possible in Cassius? Or considered as feature for the future? 
IMHO does this feature lead to very concisely scoped CSS while removing 
the burden of specifying the cascades from the developer.


More information about the web-devel mailing list