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?
Comments
Post a Comment