public function render()
 {
     if (Profiler::getState()) {
         $templatingProfiler = TemplatingProfiler::getInstance();
         $templatingProfiler->setRenderingInformation(self::ENGINE, $this->twig->getLoader()->getPaths()[0], $this->template, $this->variables, $this->twig->getCache() ? true : false, $this->twig->getCache(), $this->twig->getCacheFilename($this->template) ? true : false);
     }
     return $this->twig->render($this->template, $this->variables);
 }
 public function render()
 {
     $this->smarty->assign($this->variables);
     $template = $this->smarty->fetch($this->template);
     if (Profiler::getState()) {
         $templatingProfiler = TemplatingProfiler::getInstance();
         $templatingProfiler->setRenderingInformation(self::ENGINE, $this->smarty->getTemplateDir()[0], $this->template, $this->variables, $this->smarty->caching == Smarty::CACHING_OFF ? false : true, $this->smarty->getCacheDir(), $this->smarty->isCached($this->template));
     }
     return $template;
 }