You are here

public function SassCompressedRenderer::renderDirective in Sassy 7.3

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

Renders a directive.

Parameters

SassNode the node being rendered:

array properties of the directive:

Return value

string the rendered directive

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

File

phpsass/renderers/SassCompressedRenderer.php, line 60

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 renderDirective($node, $properties) {
  return $node->directive . $this
    ->between() . $this
    ->renderProperties($node, $properties) . $this
    ->end();
}