$name], $lineno, $tag);
}
/**
* Compiles the node to PHP.
*
* @param TwigCompiler $compiler A TwigCompiler instance
*/
public function compile(TwigCompiler $compiler)
{
$attrib = $this->getAttribute('name');
$includeExtras = strtolower(trim($attrib)) === 'extras';
$compiler
->addDebugInfo($this)
->write("\$_minify = ".CombineAssets::class."::instance()->useMinify;" . PHP_EOL);
if ($includeExtras) {
$compiler
->write("if (\$_minify) {" . PHP_EOL)
->indent()
->write("echo ''.PHP_EOL;" . PHP_EOL)
->outdent()
->write("}" . PHP_EOL)
->write("else {" . PHP_EOL)
->indent()
->write("echo ''.PHP_EOL;" . PHP_EOL)
->write("echo ''.PHP_EOL;" . PHP_EOL)
->outdent()
->write("}" . PHP_EOL)
->write("echo ''.PHP_EOL;" . PHP_EOL)
;
}
else {
$compiler->write("echo ''.PHP_EOL;" . PHP_EOL);
}
$compiler->write('unset($_minify);' . PHP_EOL);
}
}