public function SassNode::interpolate in Sassy 7.3
Same name and namespace in other branches
- 7 phamlp/sass/tree/SassNode.php \SassNode::interpolate()
Replace interpolated SassScript contained in '#{}' with the parsed value.
Parameters
string the text to interpolate:
SassContext the context in which the string is interpolated:
Return value
string the interpolated text
3 calls to SassNode::interpolate()
- SassDebugNode::parse in phpsass/
tree/ SassDebugNode.php - Parse this node. This raises an error.
- SassPropertyNode::parse in phpsass/
tree/ SassPropertyNode.php - Parse this node. If the node is a property namespace return all parsed child nodes. If not return the parsed version of this node.
- SassRuleNode::resolveSelectors in phpsass/
tree/ SassRuleNode.php - Resolves selectors. Interpolates SassScript in selectors and resolves any parent references or appends the parent selectors.
File
- phpsass/
tree/ SassNode.php, line 316
Class
- SassNode
- SassNode class. Base class for all Sass nodes. @package PHamlP @subpackage Sass.tree
Code
public function interpolate($expression, $context) {
$context->node = $this;
return $this->script
->interpolate($expression, $context);
}