You are here

protected function SassNode::interpolate in Sassy 7

Same name and namespace in other branches
  1. 7.3 phpsass/tree/SassNode.php \SassNode::interpolate()

* Replace interpolated SassScript contained in '#{}' with the parsed value. *

Parameters

string the text to interpolate: * @param SassContext the context in which the string is interpolated * @return string the interpolated text

3 calls to SassNode::interpolate()
SassDebugNode::parse in phamlp/sass/tree/SassDebugNode.php
* Parse this node. * This raises an error. *
SassPropertyNode::parse in phamlp/sass/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 phamlp/sass/tree/SassRuleNode.php
* Resolves selectors. * Interpolates SassScript in selectors and resolves any parent references or * appends the parent selectors. *

File

phamlp/sass/tree/SassNode.php, line 309

Class

SassNode
SassNode class. Base class for all Sass nodes. @package PHamlP @subpackage Sass.tree

Code

protected function interpolate($expression, $context) {
  $context->node = $this;
  return $this->script
    ->interpolate($expression, $context);
}