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

"Timo B. Hübel" t.h at gmx.info
Sun Apr 3 13:20:17 CEST 2011


that is nice to hear, although I especially favor the brace-less syntax. 
I think I'll have a hard time to choose between those two. Unfortunately 
I have absolutely no clue about those parsing and template Haskell 
things, but maybe I'll give it a try on a boring evening.


On 04/03/2011 01:12 PM, Michael Snoyman wrote:
> 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.
> Michael
> 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