Class Twig_TokenParser_Spaceless

InheritanceTwig_TokenParser_Spaceless » Twig_TokenParser
ImplementsTwig_TokenParserInterface

Remove whitespaces between HTML tags.

{% spaceless %}
     
foo
{% endspaceless %} {# output will be
foo
#}

Protected Properties

Hide inherited properties

PropertyTypeDescriptionDefined By
$parser Twig_Parser Twig_TokenParser

Method Details

decideSpacelessEnd() public method

public void decideSpacelessEnd ( Twig_Token $token )
$token
getTag() public method

public void getTag ( )
parse() public method

public void parse ( Twig_Token $token )
$token