Skip to content

Commit

Permalink
feat: add lattepanel again
Browse files Browse the repository at this point in the history
  • Loading branch information
BernhardBaumrock committed Jun 7, 2023
1 parent 67b9ad8 commit 007e07a
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions RockFrontend.module.php
Expand Up @@ -1267,6 +1267,9 @@ public function loadLatte()
require_once $this->path . "vendor/autoload.php";
$latte = new Engine();
$latte->setTempDirectory($this->wire->config->paths->cache . "Latte");
if ($this->wire->modules->isInstalled("TracyDebugger")) {
$latte->addExtension(new \Latte\Bridges\Tracy\TracyExtension());
}
return $this->latte = $latte;
} catch (\Throwable $th) {
$this->log($th->getMessage());
Expand Down

0 comments on commit 007e07a

Please sign in to comment.