You are here

public function SassExpandedRenderer::renderProperties in Sassy 7

Same name and namespace in other branches
  1. 7.3 phpsass/renderers/SassExpandedRenderer.php \SassExpandedRenderer::renderProperties()

* Renders properties. *

Parameters

array properties to render: * @return string the rendered properties

Overrides SassCompactRenderer::renderProperties

1 call to SassExpandedRenderer::renderProperties()
SassNestedRenderer::renderDirective in phamlp/sass/renderers/SassNestedRenderer.php
* Renders a directive. *

File

phamlp/sass/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…

Code

public function renderProperties($node, $properties) {
  $indent = $this
    ->getIndent($node) . self::INDENT;
  return $indent . join("\n{$indent}", $properties);
}