public function HamlCodeBlockNode::render in Sassy 7
Overrides HamlNode::render
File
- phamlp/
haml/ tree/ HamlCodeBlockNode.php, line 48
Class
- HamlCodeBlockNode
- HamlCodeBlockNode class. Represents a code block - if, elseif, else, foreach, do, and while. @package PHamlP @subpackage Haml.tree
Code
public function render() {
$output = $this->renderer
->renderStartCodeBlock($this);
foreach ($this->children as $child) {
$output .= $child
->render();
}
// foreach
$output .= empty($this->else) ? $this->renderer
->renderEndCodeBlock($this) : $this->else
->render();
return $this
->debug($output);
}