示例#1
0
 /**
  * Root HamlNode constructor.
  * @param array options for the tree
  * @return HamlNode
  */
 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->line = array('indentLevel' => -1);
 }