Example #1
0
 public function partial($fileName, array $data = array())
 {
     $newLevel = $this->nestedLevel + 1;
     $template = new Template($this->theme, array_merge($this->data, $data), $fileName, $newLevel);
     $template->setPathToRoot($this->getPathToRoot());
     $template->setThemeOptions($this->themeOptions);
     $template->setProjectConfig($this->projectConfig);
     return $template->parse();
 }