Permalink
Browse files

selector interpolation. Fixes #23

  • Loading branch information...
1 parent 476c709 commit 1c5826dc25916c41012912f33b96fae67025c45e @lukeapage lukeapage committed Oct 21, 2012
Showing with 19 additions and 0 deletions.
  1. +19 −0 templates/pages/doc.md
View
@@ -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
---------------------

0 comments on commit 1c5826d

Please sign in to comment.