private function getTemplateDir($templateName)
 {
     return dirname($this->paths->getTemplatePath($templateName, $this->panel));
 }