30 ->write(
"ob_start();\n")
31 ->subcompile($this->
getNode(
'body'))
32 ->write(
"echo trim(preg_replace('/>\s+</', '><', ob_get_clean()));\n")
37 class_alias(
'Twig_Node_Spaceless',
'Twig\Node\SpacelessNode',
false);
Represents a node in the AST.
Represents a node in the AST.
compile(Twig_Compiler $compiler)
Compiles the node to PHP.
Represents a spaceless node.
Create styles array
The data for the language used.
__construct(Twig_NodeInterface $body, $lineno, $tag='spaceless')
addDebugInfo(Twig_NodeInterface $node)
Adds debugging information.