You are here

public function HamlNestedRenderer::renderOpeningTag in Sassy 7

* Renders the opening tag of an element

Overrides HamlRenderer::renderOpeningTag

File

phamlp/haml/renderers/HamlNestedRenderer.php, line 22

Class

HamlNestedRenderer
HamlNestedRenderer class. Blocks and content are indented according to their nesting level. @package PHamlP @subpackage Haml.renderers

Code

public function renderOpeningTag($node) {
  return ($node->whitespaceControl['outer'] ? '' : $this
    ->getIndent($node)) . parent::renderOpeningTag($node) . ($node->whitespaceControl['inner'] ? '' : ($node->isSelfClosing && $node->whitespaceControl['outer'] ? '' : "\n"));
}