You are here

public function HamlCommentNode::render in Sassy 7

Overrides HamlNode::render

File

phamlp/haml/tree/HamlCommentNode.php, line 33

Class

HamlCommentNode
HamlCommentNode class. Represents a comment, including MSIE conditional comments. @package PHamlP @subpackage Haml.tree

Code

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

  // foreach
  $output .= $this->renderer
    ->renderCloseComment($this);
  return $this
    ->debug($output);
}