HamlExpandedRenderer.php in Sassy 7
File
phamlp/haml/renderers/HamlExpandedRenderer.php
View source
<?php
class HamlExpandedRenderer extends HamlRenderer {
public function renderOpeningTag($node) {
return parent::renderOpeningTag($node) . ($node->whitespaceControl['inner'] ? '' : ($node->isSelfClosing && $node->whitespaceControl['outer'] ? '' : "\n"));
}
public function renderClosingTag($node) {
return $node->isSelfClosing ? '' : parent::renderClosingTag($node) . ($node->whitespaceControl['outer'] ? '' : "\n");
}
public function renderContent($node) {
return self::INDENT . parent::renderContent($node) . "\n";
}
public function renderStartCodeBlock($node) {
return parent::renderStartCodeBlock($node) . "\n";
}
public function renderEndCodeBlock($node) {
return parent::renderEndCodeBlock($node) . "\n";
}
}
Classes
Name |
Description |
HamlExpandedRenderer |
HamlExpandedRenderer class.
Blocks are on single lines and content indented.
@package PHamlP
@subpackage Haml.renderers |