Using JavaScript in Less -


@root: "/images"; @app-root: `"@{root}".touppercase()`;  #form {     background: url("@{app-root}/back.jpg"); } 

running in less2css error:

syntaxerror: javascript evaluation error: unexpected string ""/images"".touppercase() on line 2, column 12:

1 @root: "/images"; 2 @app-root: "@{root}".touppercase(); 3

supposedly need run js in less set of backticks. so, why fail?

remove double quotes, , go:

@app-root: `@{root}.touppercase()`; 

check here


Comments

Popular posts from this blog

sql - invalid in the select list because it is not contained in either an aggregate function -

Angularjs unit testing - ng-disabled not working when adding text to textarea -

How to start daemon on android by adb -