Not shure if this is a scope issue, well consider the following:
$custom : #f20;
@mixin colorbyclass($class) {
.#{$class} {
background: $class;
}
}
//scss
@include colorbyclass(custom);
//compiles
.custom { color:custom; }
My issue being that i want $class to be a reference to my variable inside the function.
http://jsfiddle.net/yTkqp/
I'm up for grabs for suggestions to alternative solutions.