Here is a simplified example of something that works in less.js (using the "try it" option on
less2css.org":
@test: sample1;
element { name: @test }
@test: sample2;
On the
less2css.org website, this will translate to the following:
element { name: sample2; }
Unfortunately, using dotless it actually translates to "sample1" instead.
Does anyone know how to get dotless to do this the same way as less.js?
[[[ If you are wondering why, it is because I want to use twitter.bootstrap and override some of the variables in variables.less with my own variables.less file. I know that I can modify the values directly in the twitter.bootstrap variables.less file, but with less.js you shouldn't need to do that. As the above example demonstrates, you should be able to override the variable values by assigning the values after including the bootstrap.less file.]]]