cloudhead/less.js — Issue #497: Re-eval after javascript eval
Author: yukulele
Created: 2011-11-30 11:40:14+00:00
State: open

When LESS eval a javascript expression the result is not evaluated by less but

exemple with color:

@col-a1:#113322;
@col-a2:@col-a1*2; //#226644 :)
@hue-a :hue(@col-a1); //ok :)

@col-b1:`window.my_color` // var my_color="#113322"; //in my script after less.js call
@col-b2:@col-b1*2; //fail :(
@hue-a :hue(@col-b1); //fail :(

exemple with number:

@nbr-a1:10;
@nbr-a2:@nbr-a1*2; //20 :)

@nbr-b1:`5+5` // 10
@nbr-b2:@nbr-b1*2; //fail :(

what i must to change to to make LESS re-eval after javascript eval ?