You are here

protected function SassNestedRenderer::getIndent in Sassy 7

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

* Returns the indent string for the node *

Parameters

SassNode the node being rendered: * @return string the indent string for this SassNode

Overrides SassCompressedRenderer::getIndent

2 calls to SassNestedRenderer::getIndent()
SassNestedRenderer::renderDirective in phamlp/sass/renderers/SassNestedRenderer.php
* Renders a directive. *
SassNestedRenderer::renderSelectors in phamlp/sass/renderers/SassNestedRenderer.php
* Renders rule selectors. *

File

phamlp/sass/renderers/SassNestedRenderer.php, line 37

Class

SassNestedRenderer
SassNestedRenderer class. Nested style is the default Sass style, because it reflects the structure of the document in much the same way Sass does. Each rule is indented based on how deeply it's nested. Each property has its own line and is…

Code

protected function getIndent($node) {
  return str_repeat(self::INDENT, $node->level);
}