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