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
Selector Interpolation in less causing compiling errors. #54
Comments
The example is related to two not yet implemented less features:
String interpolation should not be too complicated and is planned to go into the next release. I can do escaping after that, it seems to be important. It is hard to estimate when it will be done, because I did not analyzed it yet. It may be either very easy or very hard to do - depending on where exactly is the ~"included stuff" syntax allowed. If you know the list of all places where the ~"..." can go, it would be very welcome. |
I'm a colleague to DBarbarian and we think I'm more qualified to answer. |
Selector interpolation is now implemented with The original example by DBarbarian works now (or will work after next release). This:
compiles into:
Note: the second example is very similar, but miss parentheses around the |
Just to clarify: less.js have to different syntaxes on how to interpolated selectors.
Less.js currently accepts both, but the syntax (~'@{a}') is older and was lately deprecated. It is possible that they will remove it in 1.4.0. Less4j accepts only the older (~'@{a}'). The newer syntax used in the second example (used by rubine) is not implemented. I opened new issue for the new syntax: #57 Feel free to reopen this issue or add comment if the second syntax is what you actually need. |
The other syntax is now implemented too. New release will be available soon. |
Is this included in version 0.0.6? |
It is included in 0.0.7 - it was released yesterday. Library is available in maven and command line is available in less4j dropbox account. |
1 similar comment
It is included in 0.0.7 - it was released yesterday. Library is available in maven and command line is available in less4j dropbox account. |
This example is narrowed down to its bare minimum in order to demonstrate the issue easily.
Given the following less code (in a file called main.less):
.call-me () {
@A: '.something';
(~'@{a}')
{
// Removed code in example
}
}
I have tried this towards online less compilers such as http://lesstester.com/ and http://winless.org/online-less-compiler and it does not generate any errors. When I run this in the standalone less4j I get the following compiling errors:
The text was updated successfully, but these errors were encountered: