public function HamlNestedRenderer::renderClosingTag in Sassy 7
* Renders the closing tag of an element
Overrides HamlRenderer::renderClosingTag
File
- phamlp/
haml/ renderers/ HamlNestedRenderer.php, line 31
Class
- HamlNestedRenderer
- HamlNestedRenderer class. Blocks and content are indented according to their nesting level. @package PHamlP @subpackage Haml.renderers
Code
public function renderClosingTag($node) {
return $node->isSelfClosing ? '' : ($node->whitespaceControl['inner'] ? '' : $this
->getIndent($node)) . parent::renderClosingTag($node) . ($node->whitespaceControl['outer'] ? '' : "\n");
}