public function render($template, $params = [])
    {
        $view = new View($this->app, new Theme());
        $params['generator'] = $this;

        return $view->renderFile($this->getTemplatePath() . '/' . $template, $params, $this);
    }