class SassRenderer in Sassy 7.3
Same name and namespace in other branches
- 7 phamlp/sass/renderers/SassRenderer.php \SassRenderer
SassRenderer class. @package PHamlP @subpackage Sass.renderers
Hierarchy
- class \SassRenderer
Expanded class hierarchy of SassRenderer
File
- phpsass/
renderers/ SassRenderer.php, line 22
View source
class SassRenderer {
/**#@+
* Output Styles
*/
const STYLE_COMPRESSED = 'compressed';
const STYLE_COMPACT = 'compact';
const STYLE_EXPANDED = 'expanded';
const STYLE_NESTED = 'nested';
/**#@-*/
const INDENT = ' ';
/**
* Returns the renderer for the required render style.
* @param string render style
* @return SassRenderer
*/
public static function getRenderer($style) {
switch ($style) {
case self::STYLE_COMPACT:
return new SassCompactRenderer();
case self::STYLE_COMPRESSED:
return new SassCompressedRenderer();
case self::STYLE_EXPANDED:
return new SassExpandedRenderer();
case self::STYLE_NESTED:
return new SassNestedRenderer();
}
// switch
}
}
Members
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
SassRenderer:: |
public static | function | Returns the renderer for the required render style. | |
SassRenderer:: |
constant | |||
SassRenderer:: |
constant | |||
SassRenderer:: |
constant | |||
SassRenderer:: |
constant | |||
SassRenderer:: |
constant |