From c01dc4420230987b41003838096712a42ba46556 Mon Sep 17 00:00:00 2001 From: mychidarko Date: Thu, 16 Jan 2025 10:21:44 +0000 Subject: [PATCH] feat: add attachView method --- src/App.php | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/src/App.php b/src/App.php index ab351bb..2e614e4 100755 --- a/src/App.php +++ b/src/App.php @@ -178,6 +178,15 @@ public function attach(callable $code) $this->setupErrorHandler(); } + /** + * Attach a view engine to Leaf + * @param mixed $view The view engine to attach + */ + public function attachView($view) + { + Config::attachView($view); + } + /** * Evade CORS errors *