public function display(string $base, array $params = [], string $mime = 'text/html;charset=UTF-8') : bool
{
if (!\headers_sent()) {
\ob_start();
// We need to render this to make sure our CSP headers send!
echo $this->twigEnv->render($base . '.twig', \array_merge($this->stored, $params));
$this->sendStandardHeaders($mime);
\ob_end_flush();
return true;
}
echo $this->twigEnv->render($base . '.twig', \array_merge($this->stored, $params));
return true;
}