I would like to take advantage of the name of my css classes to also specify the url for an image that they depend on. I'm aware that using an ampersand within a selector allows you to add additional states but I was wondering if I can access it as a string? I would like to do something like the following:
.my-image{
background: url('images/@{&}.png');
}
and have it compile to:
.my-image{
background: url('images/my-image.png');
}
On second thought, I now see I would also need to remove the leading period somehow, but regardless - is there a way to capture the selector name as a string inside the property definitions?