You are here

public function SassCompactRenderer::renderProperty in Sassy 7.3

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

Renders a property.

Parameters

SassNode the node being rendered:

Return value

string the rendered property

Overrides SassCompressedRenderer::renderProperty

File

phpsass/renderers/SassCompactRenderer.php, line 80

Class

SassCompactRenderer
SassCompactRenderer class. Each CSS rule takes up only one line, with every property defined on that line. Nested rules are placed next to each other with no newline, while groups of rules have newlines between them. @package PHamlP @subpackage …

Code

public function renderProperty($node) {
  return "{$node->name}: {$node->value};";
}