class HamlCompactRenderer in Sassy 7
HamlCompactRenderer class. Renders blocks on single lines. @package PHamlP @subpackage Haml.renderers
Hierarchy
- class \HamlRenderer
- class \HamlCompactRenderer
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
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
HamlCompactRenderer:: |
public | function |
* Renders the closing tag of an element Overrides HamlRenderer:: |
|
HamlCompactRenderer:: |
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 the closing of a comment | 2 |
HamlRenderer:: |
public | function | * Renders content. * | 2 |
HamlRenderer:: |
public | function | * Renders the end of a code block | 2 |
HamlRenderer:: |
public | function | * Renders the opening of a comment | 2 |
HamlRenderer:: |
public | function | * Renders the start of a code block | 2 |
HamlRenderer:: |
constant | |||
HamlRenderer:: |
constant | |||
HamlRenderer:: |
constant | |||
HamlRenderer:: |
constant | |||
HamlRenderer:: |
public | function |