You are here

public function HamlRenderer::renderCloseComment in Sassy 7

* Renders the closing of a comment

2 calls to HamlRenderer::renderCloseComment()
HamlCompressedRenderer::renderCloseComment in phamlp/haml/renderers/HamlCompressedRenderer.php
* Renders the closing of a comment. * Only conditional comments are rendered
HamlNestedRenderer::renderCloseComment in phamlp/haml/renderers/HamlNestedRenderer.php
* Renders the closing of a comment
2 methods override HamlRenderer::renderCloseComment()
HamlCompressedRenderer::renderCloseComment in phamlp/haml/renderers/HamlCompressedRenderer.php
* Renders the closing of a comment. * Only conditional comments are rendered
HamlNestedRenderer::renderCloseComment in phamlp/haml/renderers/HamlNestedRenderer.php
* Renders the closing of a comment

File

phamlp/haml/renderers/HamlRenderer.php, line 126

Class

HamlRenderer
HamlRenderer class. Provides the most common version of each method. Child classs override methods to provide style specific rendering. @package PHamlP @subpackage Haml.renderers

Code

public function renderCloseComment($node) {
  return ($node->isConditional ? "\n<![endif]" : ' ') . '-->' . ($node->isConditional ? "\n" : '');
}