Skip to content

Instantly share code, notes, and snippets.

@dustinsenos
Created August 2, 2012 21:31
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 2 You must be signed in to fork a gist
  • Save dustinsenos/3240838 to your computer and use it in GitHub Desktop.
Save dustinsenos/3240838 to your computer and use it in GitHub Desktop.
LESS Mixin with String Interpolation, broken?
@cdn: "rons-house";
.add-bg(@url) {
background-image: @url;
}
.foo {
// works: background-image: url("@{cdn}/bar.png");
// works: .add-bg(@cdn);
.add-bg(url("@{cdn}/bar.png")); // doesn't work
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment