You are here

public function HamlRootNode::__construct in Sassy 7

* Root HamlNode constructor. *

Parameters

array options for the tree: * @return HamlNode

Overrides HamlNode::__construct

File

phamlp/haml/tree/HamlRootNode.php, line 35

Class

HamlRootNode
HamlRootNode class. Also the root node of a document. @package PHamlP @subpackage Haml.tree

Code

public function __construct($options) {
  $this->root = $this;
  $this->options = $options;
  $this->renderer = HamlRenderer::getRenderer($this->options['style'], array(
    'format' => $this->options['format'],
    'attrWrapper' => $this->options['attrWrapper'],
    'minimizedAttributes' => $this->options['minimizedAttributes'],
  ));
  $this->token = array(
    'level' => -1,
  );
}