HamlCompressedRenderer.php in Sassy 7
File
phamlp/haml/renderers/HamlCompressedRenderer.php
View source
<?php
class HamlCompressedRenderer extends HamlRenderer {
public function renderOpenComment($node) {
if ($node->isConditional) {
return parent::renderOpenComment($node);
}
}
public function renderCloseComment($node) {
if ($node->isConditional) {
return parent::renderCloseComment($node);
}
}
public function renderOpeningTag($node) {
return ($node->isBlock ? '' : ' ') . parent::renderOpeningTag($node);
}
public function renderClosingTag($node) {
return parent::renderClosingTag($node) . ($node->isBlock ? '' : ' ');
}
}
Classes
Name |
Description |
HamlCompressedRenderer |
HamlCompressedRenderer class.
Output has minimal whitespace.
@package PHamlP
@subpackage Haml.renderers |