Create a gist now

Instantly share code, notes, and snippets.

What would you like to do?
LESS v1.1.0 - What's new

LESS v1.1.0 - What's new

  • @arguments special variable. (.box-shadow () { -webkit-box-shadow: @arguments })
  • string interpolation ("@{var}" replaced with value of @var)
  • variable variables. (@@var refers to variable named by the value of @var)
  • JavaScript expressions. (``content: `"@{var}".toUpperCase() + '!'```)
  • Native string escaping. (~"MS.BS.DXImageTransform:filter()" instead of e() function)

... and a bunch of fixes.

See examples and full documentation on

cool ideas :)

I'm not sure I understand how string interpolation works; aside from being able to use a var flush with other text without it interferring, what does it actually do?

exactly what you say but it's very nice, allows a clean syntax compared to what you had to do before

@arguments is awesome. Now, I can finally build sane mixins for CSS3 shadows with multiple arguments support. THANK YOU!


cloudhead commented May 14, 2011

@Heilemann: that's exactly what it does, it's just like #@var in ruby and${var}in bash. So it'll probably mainly be used inside urls, likeurl("http://@{base}/image.jpg")`, but combined with string escaping, can be used anywhere:

 @green: "FF";
  color: ~"#AA@{green}EE";


   color: #AAFFEE;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment