SassRenderer.php in Sassy 7
File
phamlp/sass/renderers/SassRenderer.php
View source
<?php
require_once 'SassCompactRenderer.php';
require_once 'SassCompressedRenderer.php';
require_once 'SassExpandedRenderer.php';
require_once 'SassNestedRenderer.php';
class SassRenderer {
const STYLE_COMPRESSED = 'compressed';
const STYLE_COMPACT = 'compact';
const STYLE_EXPANDED = 'expanded';
const STYLE_NESTED = 'nested';
const INDENT = ' ';
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();
}
}
}
Classes
Name |
Description |
SassRenderer |
SassRenderer class.
@package PHamlP
@subpackage Sass.renderers |