Permalink
Browse files

Use caution when using javascript in less

  • Loading branch information...
lukeapage committed Oct 21, 2012
1 parent c409bf6 commit 476c709c388fe818ab8fbc21611de1dbb4d2f477
Showing with 4 additions and 1 deletion.
  1. +4 −1 templates/pages/doc.md
View
@@ -582,7 +582,10 @@ This is called an "escaped value", which will result in:
JavaScript evaluation
---------------------
-JavaScript expressions can be evaluated as values inside .less files. This is done by wrapping the expression
+JavaScript expressions can be evaluated as values inside .less files. We reccomend using caution with this feature
+as the less will not be compilable by ports and it makes the less harder to mantain. If possible, try to think of a
+function that can be added to achieve the same purpose and ask for it on github. We have plans to allow expanding the
+default functions available. However, if you still want to use JavaScript in .less, this is done by wrapping the expression
with back-ticks:
@var: `"hello".toUpperCase() + '!'`;

0 comments on commit 476c709

Please sign in to comment.