src/Jade/Filter/AbstractFilter.php
protected function getNodeString(Filter $node, Compiler $compiler = null)
    {
        return array_reduce($node->block->nodes, function(&$result, $line) use($compiler) {
            $val = $compiler ? $compiler->interpolate($line->value) : $line->value;
            return $result .= $val."\n";
        });
    }
protected function getNodeString(Filter $node, Compiler $compiler = null)
    {
        return array_reduce($node->block->nodes, function(&$result, $line) use($compiler) {
            $val = $compiler ? $compiler->interpolate($line->value) : $line->value;
            return $result .= $val."\n";
        });
    }
protected function getNodeString ( Filter $ node , Compiler $ compiler = null ) { return array_reduce ( $ node -> block -> nodes , function ( & $ result , $ line ) use ( $ compiler ) { $ val = $ compiler ? $ compiler -> interpolate ( $ line -> value ) : $ line -> value ; return $ result .= $ val . "\n" ; } ) ; }
Returns the node string value, line by line.
If the compiler is present, that means we need
to interpolate line contents
@param Filter $node
@param Compiler $compiler
@return mixed
Returns the node string value line by line . If the compiler is present that means we need to interpolate line contents