You are here

public function SassCompressedRenderer::renderRule in Sassy 7.3

Same name and namespace in other branches
  1. 7 phamlp/sass/renderers/SassCompressedRenderer.php \SassCompressedRenderer::renderRule()

Renders a rule.

Parameters

SassNode the node being rendered:

array rule properties:

string rendered rules:

Return value

string the rendered directive

1 call to SassCompressedRenderer::renderRule()
SassCompactRenderer::renderRule in phpsass/renderers/SassCompactRenderer.php
Renders a rule.
1 method overrides SassCompressedRenderer::renderRule()
SassCompactRenderer::renderRule in phpsass/renderers/SassCompactRenderer.php
Renders a rule.

File

phpsass/renderers/SassCompressedRenderer.php, line 90

Class

SassCompressedRenderer
SassCompressedRenderer class. Compressed style takes up the minimum amount of space possible, having no whitespace except that necessary to separate selectors and a newline at the end of the file. It's not meant to be human-readable @package …

Code

public function renderRule($node, $properties, $rules) {
  return (!empty($properties) ? $this
    ->renderSelectors($node) . $this
    ->between() . $this
    ->renderProperties($node, $properties) . $this
    ->end() : '') . $rules;
}