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

AbotX : How do you create a parallel crawler that stays on and can be added to at run time from new requests -

testing - Detect whether test has failed within fixture -

android - Create single AAR file from multiple modules using Gradle -