You are here

private function HamlParser::isSelfClosing in Sassy 7

* Return a value indicating if the line's tag is self-closing. *

Parameters

array line: * @return boolean true if the line's tag is self-closing, false if not

1 call to HamlParser::isSelfClosing()
HamlParser::parseElement in phamlp/haml/HamlParser.php
* Parse an element. *

File

phamlp/haml/HamlParser.php, line 787

Class

HamlParser
HamlParser class. Parses {@link http://haml-lang.com/ Haml} view files. @package PHamlP @subpackage Haml

Code

private function isSelfClosing($line) {
  return in_array($line[self::HAML_TAG], $this->emptyTags) || $line[self::HAML_TOKEN] == self::SELF_CLOSE_TAG;
}