public function SassCompressedRenderer::renderRule in Sassy 7
Same name and namespace in other branches
- 7.3 phpsass/renderers/SassCompressedRenderer.php \SassCompressedRenderer::renderRule()
* Renders a rule. *
Parameters
SassNode the node being rendered: * @param array rule properties * @param string rendered rules * @return string the rendered directive
1 call to SassCompressedRenderer::renderRule()
- SassCompactRenderer::renderRule in phamlp/
sass/ renderers/ SassCompactRenderer.php - * Renders a rule. *
1 method overrides SassCompressedRenderer::renderRule()
- SassCompactRenderer::renderRule in phamlp/
sass/ renderers/ SassCompactRenderer.php - * Renders a rule. *
File
- phamlp/
sass/ 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…
Code
public function renderRule($node, $properties, $rules) {
return (!empty($properties) ? $this
->renderSelectors($node) . $this
->between() . $this
->renderProperties($node, $properties) . $this
->end() : '') . $rules;
}