Skip to content
This repository
Browse code

Use caution when using javascript in less

  • Loading branch information...
commit 476c709c388fe818ab8fbc21611de1dbb4d2f477 1 parent c409bf6
Luke Page authored

Showing 1 changed file with 4 additions and 1 deletion. Show diff stats Hide diff stats

  1. 5  templates/pages/doc.md
5  templates/pages/doc.md
Source Rendered
@@ -582,7 +582,10 @@ This is called an "escaped value", which will result in:
582 582
 JavaScript evaluation
583 583
 ---------------------
584 584
 
585  
-JavaScript expressions can be evaluated as values inside .less files. This is done by wrapping the expression
  585
+JavaScript expressions can be evaluated as values inside .less files. We reccomend using caution with this feature
  586
+as the less will not be compilable by ports and it makes the less harder to mantain. If possible, try to think of a
  587
+function that can be added to achieve the same purpose and ask for it on github. We have plans to allow expanding the
  588
+default functions available. However, if you still want to use JavaScript in .less, this is done by wrapping the expression
586 589
 with back-ticks:
587 590
 
588 591
     @var: `"hello".toUpperCase() + '!'`;

0 notes on commit 476c709

Please sign in to comment.
Something went wrong with that request. Please try again.