示例#1
0
 public static function getHtmlTemplate($page, array $vars = array(), $layout = false)
 {
     $render = new static();
     return $render->renderTemplate($page, $vars, $layout);
 }
示例#2
0
 /**
  * @param string $template
  */
 public function subTemplate($template)
 {
     $subtemplate_instance = new static($this->template_path, $template, $this->data, $this->template_filter, $this->filters, $this->response, $this->template_extension);
     return $subtemplate_instance->renderTemplate();
 }