http://sass-lang.com/docs/yardoc/file.SASS_REFERENCE.html#interpolation_
On Thu, Aug 19, 2010 at 4:54 PM, weyus <[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]. > To unsubscribe from this group, send email to > [email protected] <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.
