Closed KELiON closed 8 years ago
Quick solution is to use silent
mode.
Maybe we can add escaping? Like \$x
?
The unicode escape syntax can address this...
content: "\0024x"; /* "$x" */
@studiosciences thank! I added this advice to docs 52e1dd8
It is possible to have variable-like syntax in
content
property, i.e.Currently it will raise an error (undefined variable $x). I wanted to do PR with fix, but I think it is topic to discuss, what is proper behaviour in this case? I see two options:
1) Use js-like syntax in strings in css, like
content: '$one'
will not be changed, butcontent: '${one}'
will replace${one}
to value of$one
; 2) Use escapes for $ in this case, likecontent: \$one
will be changed tocontent: $one
andcontent: $one
will be changed to variable value.Any thoughts?