Skip to content

Commit 85318ef

Browse files
committed
setVariables() clarification
1 parent 731f200 commit 85318ef

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

docs/index.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -107,6 +107,9 @@ $scss->setVariables(array(
107107
echo $scss->compile('$var: true !default;');
108108
{% endhighlight %}
109109

110+
Note: the value is the scss source to be parsed. If you want to parse a string,
111+
you have to represent it as a string, e.g,, `'var' => '"string"'`.
112+
110113
Likewise, you can retrieve the preset variables using the `getVariables()`
111114
method, and unset a variable using the `unsetVariable($name)` method.
112115

0 commit comments

Comments
 (0)