Thanks. Sorry for the noise. I figured it was pretty straightforward. All of the examples I saw online were using barewords instead of #{...} interpolation, which seems to work fine for values, but not for not-values :).

W

On 8/19/10 6:59 PM, Nathan Weizenbaum wrote:
http://sass-lang.com/docs/yardoc/file.SASS_REFERENCE.html#interpolation_

On Thu, Aug 19, 2010 at 4:54 PM, weyus <[email protected] <mailto:[email protected]>> wrote:

    All,

    I have the following mixin that does not get parsed correctly.  I
    would like to be able to pass in the value of $section to this:

    =sidebar_links($section)
     body
       .$section
           #toc
             li#$section
               a
                 color: #fab914
                 background-color: #2e2787
                 padding: inherit

    when I try to call this using:

    +sidebar_links(prospecting)

    I get:

    Invalid CSS after ".":expected class name,was "$section"

    Is there anyway to use variables to define class and/or id names in a
    Sass mixin?

    Thanks,
    Wes

    --
    You received this message because you are subscribed to the Google
    Groups "Haml" group.
    To post to this group, send email to [email protected]
    <mailto:[email protected]>.
    To unsubscribe from this group, send email to
    [email protected]
    <mailto:haml%[email protected]>.
    For more options, visit this group at
    http://groups.google.com/group/haml?hl=en.


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

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