public function render()

in app/classes/ReleaseInsights/Template.php [36:61]


    public function render(): void
    {
        // Initialize our Templating system
        $twig_loader = new FilesystemLoader(INSTALL_ROOT . 'app/views/templates');

        // @codeCoverageIgnoreStart
        // Allow Twig debug mode in local dev mode
        if (LOCALHOST && !defined('TESTING_CONTEXT')) {
            $twig = new Environment(
                $twig_loader,
                [
                    'cache' => $this->template_caching,
                    'debug' => true,
                    'auto_reload' => true,
                ]
            );
            $twig->addExtension(new \Twig\Extension\DebugExtension());
        } else {
            $twig = new Environment($twig_loader, ['cache' => $this->template_caching,]);
        }
        // @codeCoverageIgnoreEnd

        $twig->addExtension(new IntlExtension());
        echo $twig->render($this->template, $this->data);
        die;
    }