protected function parseStatement($buf) { if (empty($this->currentMoreEnv)) { return parent::parseStatement($buf); } if (null !== ($node = $this->parseSnipCaller($buf))) { return $node; } else { if (null !== ($node = $this->parsePlaceholderValue($buf))) { return $node; } else { if (null !== ($node = $this->parsePlaceholder($buf))) { return $node; } else { if (null !== ($node = $this->parseHtmlTag($buf))) { return $node; } else { if (null !== ($node = $this->parsePlaceholderDefaultValueCaller($buf))) { return $node; } else { return parent::parseStatement($buf); } } } } } }
protected function parseStatement($buf) { //first parse filters, so we can parse :haml with configs first // Dbg::emsgd($this->env->getOptions()); if (null !== ($node = $this->parseFilter($buf))) { if ($node->getFilter() == 'haml') { Haml::setOptions($node, $this->env); } return $node; } return parent::parseStatement($buf); }