LESS equivalent for selector variable evaluation
Is it already possible to do something like this in LESS:
SASS:
$theme: a
.myselector-#{$theme}
padding: 3px
This would evaluate in
.myselector-a开发者_StackOverflow社区
{
padding: 3px;
}
I'm afraid that this kind of feature is not supported yet...
I've just searched for it looking at LESS test files available on github (https://github.com/cloudhead/less.js/tree/master/test/less) and didn't find such functionality.
精彩评论