On 10 Apr 2008, at 19:29, Nathan Weizenbaum wrote:
> I'm not sure this is actually a problem... mixin definitions aren't
> actually ambiguous with attributes beginning with -. Attributes can
> never be at the root of a document, and mixins must be. It shouldn't
> be
> hard to add a check for that.
I'd considered this as an option after suggesting changing to '$" and
it would certainly be possible. But, If we keep the '-', it means we
lose checks for mixin definitions that aren't on the root. This means
that people might start defining mixins in the wrong place and have
Sass produce unexpected results. I think it would make coding easier
if this threw an error rather than producing weird CSS.
For instance:
-correct-mixin-def
color: red
.someclass
+correct-mixin-def
-incorrect-mixin-def
display: block
would produce:
.someclass {
color: red;
-incorrect-mixin-display: block;
}
rather than throw an error.
Keeping the mixin definition char completely out of the CSS name space
(so to speak) would remove some potential ambiguity.
g
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Haml" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at http://groups.google.com/group/haml?hl=en
-~----------~----~----~----~------~----~------~--~---