SpacelessNode

Represents a spaceless node.

 class System\Twig\SpacelessNode
extends Twig\Node\Node
implements 
    Twig\Node\NodeOutputInterface

It removes spaces between HTML tags.

Removed in Twig 3.0, but retained in Winter CMS for compatibility.

Methods

public __construct (Twig\Node\Node $body, integer $lineno, string $tag = "spaceless")

Parameters
Property Description
$body
Twig\Node\Node
$lineno
integer
$tag
string
Returns
mixed

public compile (Twig\Compiler $compiler)

Parameters
Property Description
$compiler
Twig\Compiler
Returns
mixed
Copyright © 2024 Winter CMS