diff --git a/src/scripts.php b/src/scripts.php index 428df71..de47625 100644 --- a/src/scripts.php +++ b/src/scripts.php @@ -1,7 +1,7 @@ attach(function () { +if (class_exists('\Leaf\Config')) { + \Leaf\Config::addScript(function () { \Leaf\View::attach(\Leaf\BareUI::class, 'template'); }); }