When using a variable with mixin
or extend
in Less.js
, the following code will result in an error:
@bar : bar;
.@{bar} {
background: yellow;
}
// ParseError: Missing closing ')'
.foo {
.@{bar}();
}
// This will not work
.jam {
&:extend(.@{bar});
}
Is there a proper syntax in Less.js
to call a mixin
with variables?