-
Notifications
You must be signed in to change notification settings - Fork 53
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
@include'ing from a variable? #23
Comments
Maybe you should start explaining what you're expecting to happen? Hard to guess from
Hint: "doesn't work" is in nearly 99% of all cases too less. P.s.: If the |
@franz-josef-kaiser @sanchothefat Make sense? |
Actually, this upstream issue describes what I'm going for as well: leafo/lessphp#328 |
Yep, this is something that would have to go into lessphp so I can't fix it here. There is another way you might be able to do it though using pattern matching or guarded mixins:
I've not tested the above but it might be a starting point. It might be that less parses and prefetches the contents of any imported files before parsing the thing as a whole. I'm not too familiar with the inner workings unfortunately of lessphp :/ Let me if it works! |
I've just updated to 0.3.8 - can you try out your use case again? |
Just tested this and it doesn't appear to work :( |
Who is? It's uncommented crap without proper DocBlocks :) For some of the earlier patch, I did the debug from the inner side of the submodule, but the internal calls go back and forth, so don't blame yourself. |
Howdy.
The following doesn't seem to work:
In
functions.php
In the
.less
file:This results in:
...etc.
What am I doing wrong? Is this even possible?
The text was updated successfully, but these errors were encountered: