You are here

public function HamlFilterNode::render in Sassy 7

* Render this node. * The filter is run on the content of child nodes before being returned. *

Return value

string the rendered node

Overrides HamlNode::render

File

phamlp/haml/tree/HamlFilterNode.php, line 43

Class

HamlFilterNode
HamlFilterNode class. Represent a filter in the Haml source. The filter is run on the output from child nodes when the node is rendered. @package PHamlP @subpackage Haml.tree

Code

public function render() {
  $output = '';
  foreach ($this->children as $child) {
    $output .= $child
      ->getContent();
  }

  // foreach
  return $this
    ->debug($this->filter
    ->run($output));
}