Example #1
0
 public static function render($templateName, $directory, $options = NULL)
 {
     $template = new Template($templateName, $directory, $options);
     if (isset($options['header']) && $options['header']) {
         header('Content-Type: ' . Mimetype::fromExtension($this->getExtension()));
     }
     if (isset($options['relative']) && $options['relative']) {
         return $template->getParsedRelativePath();
     } else {
         return $template->getParsedPath();
     }
 }