public function SassExpandedRenderer::renderProperties in Sassy 7.3
Same name and namespace in other branches
- 7 phamlp/sass/renderers/SassExpandedRenderer.php \SassExpandedRenderer::renderProperties()
Renders properties.
Parameters
array properties to render:
Return value
string the rendered properties
Overrides SassCompactRenderer::renderProperties
1 call to SassExpandedRenderer::renderProperties()
- SassNestedRenderer::renderDirective in phpsass/
renderers/ SassNestedRenderer.php - Renders a directive.
File
- phpsass/
renderers/ SassExpandedRenderer.php, line 58
Class
- SassExpandedRenderer
- SassExpandedRenderer class. Expanded is the typical human-made CSS style, with each property and rule taking up one line. Properties are indented within the rules, but the rules are not indented in any special way. @package PHamlP @subpackage …
Code
public function renderProperties($node, $properties) {
$indent = $this
->getIndent($node) . self::INDENT;
return $indent . join("\n{$indent}", $properties);
}