23 parent::__construct(array(
'body' => $body), array(),
$lineno,
$tag);
35 ->write(
"ob_start();\n")
36 ->subcompile($this->
getNode(
'body'))
37 ->write(
"echo trim(preg_replace('/>\s+</', '><', ob_get_clean()));\n")
compile(Twig_Compiler $compiler)
Compiles the node to PHP.
Compiles a node to PHP code.
Represents a node in the AST.
__construct(Twig_NodeInterface $body, $lineno, $tag= 'spaceless')
addDebugInfo(Twig_NodeInterface $node)
Adds debugging information.
Represents a node in the AST.
getNode($name)
Gets a node by name.
Represents a spaceless node.