You are here

private function HamlParser::isChildOf in Sassy 7

* Returns a value indicating if $line is a child of a node. * A blank line is a child of a node. *

Parameters

HamlNode the node: * @param array the line to check * @return boolean true if the line is a child of the node, false if not

1 call to HamlParser::isChildOf()
HamlParser::buildTree in phamlp/haml/HamlParser.php
* Builds a parse tree under the parent node. *

File

phamlp/haml/HamlParser.php, line 549

Class

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

Code

private function isChildOf($node, $line) {
  $haml = trim($line[self::HAML_HAML]);
  return empty($haml) || $this
    ->getLevel($line, $this->line) > $node->level;
}