You are here

class HamlCompactRenderer in Sassy 7

HamlCompactRenderer class. Renders blocks on single lines. @package PHamlP @subpackage Haml.renderers

Hierarchy

Expanded class hierarchy of HamlCompactRenderer

File

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

View source
class HamlCompactRenderer extends HamlRenderer {

  /**
   * 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 ? "\n" : ' ');
  }

}

Members

Namesort descending Modifiers Type Description Overrides
HamlCompactRenderer::renderClosingTag public function * Renders the closing tag of an element Overrides HamlRenderer::renderClosingTag
HamlCompactRenderer::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::renderCloseComment public function * Renders the closing of a comment 2
HamlRenderer::renderContent public function * Renders content. * 2
HamlRenderer::renderEndCodeBlock public function * Renders the end of a code block 2
HamlRenderer::renderOpenComment public function * Renders the opening of a comment 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