public function setTemplate(Template $template)
    {
        $this->template = $template;
        $this->setVariable('template', $template);
        $this->setVariable('tpl', $template);
        return $this;
    }