You are here

public function SassRootNode::render in Sassy 7

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

* Render this node. *

Return value

string the rendered node

File

phamlp/sass/tree/SassRootNode.php, line 74

Class

SassRootNode
SassRootNode class. Also the root node of a document. @package PHamlP @subpackage Sass.tree

Code

public function render() {
  $node = $this
    ->parse(new SassContext());
  $output = '';
  foreach ($node->children as $child) {
    $output .= $child
      ->render();
  }

  // foreach
  return $output;
}