class HamlCompressedRenderer in Sassy 7
HamlCompressedRenderer class. Output has minimal whitespace. @package PHamlP @subpackage Haml.renderers
Hierarchy
- class \HamlRenderer
- class \HamlCompressedRenderer
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
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
HamlCompressedRenderer:: |
public | function |
* Renders the closing of a comment.
* Only conditional comments are rendered Overrides HamlRenderer:: |
|
HamlCompressedRenderer:: |
public | function |
* Renders the closing tag of an element Overrides HamlRenderer:: |
|
HamlCompressedRenderer:: |
public | function |
* Renders the opening of a comment.
* Only conditional comments are rendered Overrides HamlRenderer:: |
|
HamlCompressedRenderer:: |
public | function |
* Renders the opening tag of an element Overrides HamlRenderer:: |
|
HamlRenderer:: |
private | property | ||
HamlRenderer:: |
private | property | ||
HamlRenderer:: |
private | property | ||
HamlRenderer:: |
public static | function | * Returns the renderer for the required render style. * | |
HamlRenderer:: |
constant | |||
HamlRenderer:: |
private | function | * Renders element attributes | |
HamlRenderer:: |
public | function | * Renders content. * | 2 |
HamlRenderer:: |
public | function | * Renders the end of a code block | 2 |
HamlRenderer:: |
public | function | * Renders the start of a code block | 2 |
HamlRenderer:: |
constant | |||
HamlRenderer:: |
constant | |||
HamlRenderer:: |
constant | |||
HamlRenderer:: |
constant | |||
HamlRenderer:: |
public | function |