You are here

public function HamlRenderer::renderOpenComment in Sassy 7

* Renders the opening of a comment

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

File

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

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 renderOpenComment($node) {
  return ($node->isConditional ? "\n\n" : '') . "<!--{$node->content}" . ($node->isConditional ? ">\n" : ' ');
}