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

Michael Snoyman michael at snoyman.com
Sun Apr 3 13:12:47 CEST 2011

Cassius actually supported this in the past. However, there are some
technical problems involving the syntax that led me to take it out.
However, this *is* a feature that's planned for Lucius, the
brace-syntax sibling of Cassius.

I'm open to revisiting the issue on Cassius, especially if someone
submits a patch.


On Sun, Apr 3, 2011 at 1:59 PM, "Timo B. Hübel" <t.h at gmx.info> wrote:
> Hi,
> one of my most loved features in SASS is automatic scoping/cascading via
> indenting/significant whitespace.
> Consider the following SASS code:
> #header
>  p
>    color: red
> #content
>  p
>    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.
> Cheers,
> T.
> _______________________________________________
> web-devel mailing list
> web-devel at haskell.org
> http://www.haskell.org/mailman/listinfo/web-devel

More information about the web-devel mailing list