use Exception;
use Friendica\BaseObject;
-use Friendica\Core\System;
use Friendica\Render\FriendicaSmarty;
+use Friendica\Render\ITemplateEngine;
/**
* @brief This class handles Renderer related functions.
* @param array $vars key value pairs (search => replace)
*
* @return string substituted string
+ * @throws \Friendica\Network\HTTPException\InternalServerErrorException
*/
public static function replaceMacros($s, $vars)
{
return $output;
}
- /**
- * @brief Load a given template $s
- *
- * @param string $s Template to load.
- * @param string $root Optional.
- *
- * @return string template.
- */
+ /**
+ * @brief Load a given template $s
+ *
+ * @param string $s Template to load.
+ * @param string $root Optional.
+ *
+ * @return string template.
+ * @throws Exception
+ */
public static function getMarkupTemplate($s, $root = '')
{
$stamp1 = microtime(true);
$template = $t->getTemplateFile($s, $root);
} catch (Exception $e) {
echo "<pre><b>" . __FUNCTION__ . "</b>: " . $e->getMessage() . "</pre>";
- killme();
+ exit();
}
$a->saveTimestamp($stamp1, "file");
* If $name is not defined, return engine defined by theme,
* or default
*
- * @return object Template Engine instance
+ * @return ITemplateEngine Template Engine instance
*/
public static function getTemplateEngine()
{