guys i would like to create a background mixin instead of writing a repeating url
@mixin bgimage($name){ $url:"../images/$name.png"; background: url($url);}
and it never takes the value value in the variable $ name
i called him
@include bgimage(name.png);
and in css the output turned out to be wrong, like this
background: url("../images/$name.png");
Is there any way to write url in mixin? ot how to do it in a short way
source share