You are here

public function SassDirectiveNode::render in Sassy 7.3

Same name and namespace in other branches
  1. 7 phamlp/sass/tree/SassDirectiveNode.php \SassDirectiveNode::render()

Render this node.

Return value

string the rendered node

File

phpsass/tree/SassDirectiveNode.php, line 55

Class

SassDirectiveNode
SassDirectiveNode class. Represents a CSS directive. @package PHamlP @subpackage Sass.tree

Code

public function render() {
  $properties = array();
  foreach ($this->children as $child) {
    $properties[] = $child
      ->render();
  }

  // foreach
  return $this->renderer
    ->renderDirective($this, $properties);
}