You are here

class HamlCompressedRenderer in Sassy 7

HamlCompressedRenderer class. Output has minimal whitespace. @package PHamlP @subpackage Haml.renderers

Hierarchy

Expanded class hierarchy of HamlCompressedRenderer

File

phamlp/haml/renderers/HamlCompressedRenderer.php, line 18

View source
class HamlCompressedRenderer extends HamlRenderer {

  /**
   * Renders the opening of a comment.
   * Only conditional comments are rendered
   */
  public function renderOpenComment($node) {
    if ($node->isConditional) {
      return parent::renderOpenComment($node);
    }
  }

  /**
   * Renders the closing of a comment.
   * Only conditional comments are rendered
   */
  public function renderCloseComment($node) {
    if ($node->isConditional) {
      return parent::renderCloseComment($node);
    }
  }

  /**
   * Renders the opening tag of an element
   */
  public function renderOpeningTag($node) {
    return ($node->isBlock ? '' : ' ') . parent::renderOpeningTag($node);
  }

  /**
   * Renders the closing tag of an element
   */
  public function renderClosingTag($node) {
    return parent::renderClosingTag($node) . ($node->isBlock ? '' : ' ');
  }

}

Members

Namesort descending Modifiers Type Description Overrides
HamlCompressedRenderer::renderCloseComment public function * Renders the closing of a comment. * Only conditional comments are rendered Overrides HamlRenderer::renderCloseComment
HamlCompressedRenderer::renderClosingTag public function * Renders the closing tag of an element Overrides HamlRenderer::renderClosingTag
HamlCompressedRenderer::renderOpenComment public function * Renders the opening of a comment. * Only conditional comments are rendered Overrides HamlRenderer::renderOpenComment
HamlCompressedRenderer::renderOpeningTag public function * Renders the opening tag of an element Overrides HamlRenderer::renderOpeningTag
HamlRenderer::$attrWrapper private property
HamlRenderer::$format private property
HamlRenderer::$minimizedAttributes private property
HamlRenderer::getRenderer public static function * Returns the renderer for the required render style. *
HamlRenderer::INDENT constant
HamlRenderer::renderAttributes private function * Renders element attributes
HamlRenderer::renderContent public function * Renders content. * 2
HamlRenderer::renderEndCodeBlock public function * Renders the end of a code block 2
HamlRenderer::renderStartCodeBlock public function * Renders the start of a code block 2
HamlRenderer::STYLE_COMPACT constant
HamlRenderer::STYLE_COMPRESSED constant
HamlRenderer::STYLE_EXPANDED constant
HamlRenderer::STYLE_NESTED constant
HamlRenderer::__construct public function