less.js icon indicating copy to clipboard operation
less.js copied to clipboard

Can I get my mixin name in variable by JavaScript evaluation?

Open Pestov opened this issue 13 years ago • 2 comments

For example I have .border() {@name;} mixin. Can I get "border" by something akin to .border() {@name: ~'this.Mixin';}

Thanks.

Pestov avatar Jul 19 '13 22:07 Pestov

No..

Why do you want it?

lukeapage avatar Jul 19 '13 22:07 lukeapage

Nothing. I broke my brain when trying write @keyframes mixin. I found other way - .@{name} { ... }, but eventually it is bad idea. I dont believe, that write this mixin impossible. I thought correctly! =) https://github.com/less/less.js/issues/1264#issuecomment-18784233

Thanks LESS Team Sorry for disturbing

Pestov avatar Jul 20 '13 03:07 Pestov