Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

selector interpolation. Fixes #23

  • Loading branch information...
commit 1c5826dc25916c41012912f33b96fae67025c45e 1 parent 476c709
@lukeapage lukeapage authored
Showing with 19 additions and 0 deletions.
  1. +19 −0 templates/pages/doc.md
View
19 templates/pages/doc.md
@@ -578,6 +578,25 @@ This is called an "escaped value", which will result in:
.class {
filter: ms:alwaysHasItsOwnSyntax.For.Stuff();
}
+
+Selector Interpolation
+----------------------
+
+If you want to use less variables inside selectors, you can do this by referencing the variable using `@{selector}` as
+in string interpolation. For example:
+
+ @name: blocked;
+ .@{name} {
+ color: black;
+ }
+
+will output
+
+ .blocked {
+ color: black;
+ }
+
+Note: prior to less 1.3.1 a `(~"@{name}")` type of selector was supported. Support for this will be removed in the near future.
JavaScript evaluation
---------------------
Please sign in to comment.
Something went wrong with that request. Please try again.