31 $lineno =
$token->getLine();
34 $body = $this->parser->subparse(array($this,
'decideSpacelessEnd'),
true);
42 return $token->test(
'endspaceless');
51class_alias(
'Twig_TokenParser_Spaceless',
'Twig\TokenParser\SpacelessTokenParser',
false);
An exception for terminatinating execution or to throw for unit testing.
Represents a spaceless node.
Remove whitespaces between HTML tags.
decideSpacelessEnd(Twig_Token $token)
parse(Twig_Token $token)
Parses a token and returns a node.
getTag()
Gets the tag name associated with this token parser.
Base class for all token parsers.