public function SassContext::addMixin in Sassy 7.3
Same name and namespace in other branches
- 7 phamlp/sass/tree/SassContext.php \SassContext::addMixin()
Adds a mixin
Parameters
string name of mixin:
Return value
SassMixinDefinitionNode the mixin
File
- phpsass/
tree/ SassContext.php, line 60
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 addMixin($name, $mixin) {
$this->mixins[$name] = $mixin;
return $this;
}