You are here

public function SassDirectiveNode::render in Sassy 7

Same name and namespace in other branches
  1. 7.3 phpsass/tree/SassDirectiveNode.php \SassDirectiveNode::render()

* Render this node. *

Return value

string the rendered node

File

phamlp/sass/tree/SassDirectiveNode.php, line 52

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);
}