You are here

public function HamlHelperNode::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/HamlHelperNode.php, line 65

Class

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

Code

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

  // foreach
  $output = '<?php ' . (empty($this->pre) ? 'echo' : $this->pre) . " {$this->class}::{$this->name}('{$children}',{$this->args}); ?>";
  return $this
    ->debug($output);
}