-
Notifications
You must be signed in to change notification settings - Fork 3.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Indirect mixin calls / Mixin references #1338
Comments
duplicate of #1196 |
Although the names are similar, #1196 is about defining mixins using an interpolated name, and this one is about invoking mixins using an interpolated name. I suspect that the two issues will be resolved in different ways. If you'd like to merge the two, I can comment with my problem on that issue, but I suspect it will just confuse the issue. |
Closing in favour of discussion at less/less-meta#16 (comment). Also renaming to match the nature of the proposal (it has very few to do with "interpolation" as such). |
Hi, I didn't see this in the open issues, so forgive me if it's called something else and I didn't see it..
At work we have a standard set of "colors" that we'd like to use in a lot of places. We'd like to define a mixin that we can use to repeat mixins for each color. An example of what we'd like:
Ideally, this should compile to:
Unfortunately, it seems like interpolation in mixin names isn't possible. The code above gives me:
Here's another example:
The text was updated successfully, but these errors were encountered: