code: public function setTemplate(Template $template)
      {
          $this->template = $template;
          $this->setVariable('template', $template);
          $this->setVariable('tpl', $template);
          return $this;
      }
docs: Set the template instance to have apps use.
  @param Template $template The template to use
  @return Dispatcher Provides fluent interface