有没有办法在SASS中将函数或mixin作为引用传递给另一个函数或mixin,并调用所引用的函数或mixin?
例如:
例如:
@function foo($value) {
@return $value;
}
@mixin bob($fn: null) {
a {
b: $fn(c); // is there a way to call a referenced function here?
}
}
@include bob(foo); // is there any way I can pass the function "foo" here?