See http://github.com/nex3/haml/issues/issue/152/ for inro.

Briefly, I have css-class prefixes (like namespaces) and wanna write
many rules in one namespace without multiply repeating, e.g. for
`.myns-elem1`, `.myns-elem2` it is very logical write:
    .myns-
        &elem1
            ...
        &elem2
            ...

why `&` needs could get replaced with `*` or an element name? it's
possible throw error only when interpolation of `&` make incorrect
selectors (like `*smth`) and _warn_ when it make _possible_ wrong
selectors (like `divsmth`, _warn_ because it's possible correct
selector for custom dom-nodes).

Now, with variables interpolation possible make incorrect selector,
`#{$myvar}__subelem` produce result without any warns on any variable
content. I.e. shortest `&__elem` is deprecated way for broke
selectors, but longest `#{$myvar}__subelem` take possibility for same
errors.

Let's discuss about possible alternative syntax for short reference to
parent selector...

-- 
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.

Reply via email to