示例#1
0
 /**
  * Gets html content
  *
  * @return string|Template
  */
 public function getContent()
 {
     if ($this->content instanceof Template) {
         // if is it template
         return $this->content->render();
     } else {
         if (file_exists($this->content)) {
             // if is it file
             $l = new Engine();
             return $l->renderToString($this->content);
         }
     }
     return (string) $this->content;
 }