lessphp icon indicating copy to clipboard operation
lessphp copied to clipboard

Is possible to get the "final" value of variables after compilation?

Open Svish opened this issue 8 years ago • 0 comments

Say you for example have these variables defined:

@color1: #0d0d0d;`
@color2: lighten(@color1, 15%);
@color3: @color2;

Is it possible to, after having called $less->cachedCompile (or one of the other compile methods), to get a list of all the variables that were defined and their final value?

I'd for example like to know what color @color3 actually ended up as.

Svish avatar Feb 11 '17 00:02 Svish