You are here

public function SassCompressedRenderer::renderDirective in Sassy 7

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

* Renders a directive. *

Parameters

SassNode the node being rendered: * @param array properties of the directive * @return string the rendered directive

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

File

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

Code

public function renderDirective($node, $properties) {
  return $node->directive . $this
    ->between() . $this
    ->renderProperties($node, $properties) . $this
    ->end();
}