private function HamlParser::parseFilter in Sassy 7
* Parse a filter. *
Parameters
array line to parse: * @param HamlNode parent node * @return HamlNode filter node
1 call to HamlParser::parseFilter()
- HamlParser::parseLine in phamlp/haml/ HamlParser.php 
- * Parse a line of Haml into a HamlNode for the document tree *
File
- phamlp/haml/ HamlParser.php, line 1212 
Class
- HamlParser
- HamlParser class. Parses {@link http://haml-lang.com/ Haml} view files. @package PHamlP @subpackage Haml
Code
private function parseFilter($line, $parent) {
  $node = new HamlFilterNode($this
    ->getFilter($line[self::HAML_FILTER]), $parent);
  if ($this
    ->hasContent($line)) {
    $child = $this
      ->parseContent($line);
    $child->showOutput = $this->showOutput;
    $child->showSource = $this->showSource;
    $child->token = array(
      'level' => $line['level'] + 1,
      'line' => $line['line'],
    );
  }
  return $node;
}