public function partialInclude($template, $data = null)
 {
     $extraParams = array();
     if (is_string($data)) {
         parse_str($data, $extraParams);
     }
     $data = null;
     if ($this->owner->customisedObject) {
         $data = $this->owner->customise($this->owner->customisedObject);
     } else {
         $data = $this->owner;
     }
     foreach ($extraParams as $key => $val) {
         $data->{$key} = $val;
     }
     $arguments = array();
     $v = new SSViewer("dummy.ss");
     $v->setTemplateFile("main", null);
     $v = $this->overridePartialTemplates($v, array($template));
     // check that there was an override
     $templates = $v->templates();
     if (!strlen($templates['main'])) {
         return '';
     }
     return $v->process($data, $arguments);
 }