public function SassContext::setVariable in Sassy 7.3
Same name and namespace in other branches
- 7 phamlp/sass/tree/SassContext.php \SassContext::setVariable()
Sets a variable to the given value
Parameters
string name of variable:
sassLiteral value of variable:
File
- phpsass/
tree/ SassContext.php, line 157
Class
- SassContext
- SassContext class. Defines the context that the parser is operating in and so allows variables to be scoped. A new context is created for Mixins and imported files. @package PHamlP @subpackage Sass.tree
Code
public function setVariable($name, $value) {
$name = str_replace('-', '_', $name);
$this->variables[$name] = $value;
return $this;
}