public function createTemplate($name)
    {
        $templatePath = $this->getTemplatePath($name);
        $template = new FileTemplate($templatePath);
        $template->setTemplateFactory($this);
        return $template;
    }
public function createTemplate($name)
    {
        $templatePath = $this->getTemplatePath($name);
        $template = new FileTemplate($templatePath);
        $template->setTemplateFactory($this);
        return $template;
    }
{@inheritdoc}