You are here

public function HamlExpandedRenderer::renderOpeningTag in Sassy 7

* Renders the opening tag of an element

Overrides HamlRenderer::renderOpeningTag

File

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

Class

HamlExpandedRenderer
HamlExpandedRenderer class. Blocks are on single lines and content indented. @package PHamlP @subpackage Haml.renderers

Code

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