Hmm.... I just thought about it, and it seems that its my mistake.
Since the second case does work, but not the way I intend it to.
Something like :
%li
%div{ :class => 'mine' }
is quite different from
%li{ :class => 'mine' }
Which is why these to snippets are quite different as well.
On 2/14/07, Evgeny <[EMAIL PROTECTED]> wrote:
>
> This works :
>
> li.mine
> :color red
> li.her
> :color blue
>
>
> This does not :
> li
> .mine
> :color red
> .her
> :color blue
>
> Because the css generated from the second case has a space that it
> shouldn't have, like this:
> li .mine { color: red }
>
> But the first case has no space, like this:
> li.mine { color: red }
>
>
> Please fix.
>
> - evgeny.
>
>
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---