Skip to content

Commit

Permalink
feat: attach script for leaf init
Browse files Browse the repository at this point in the history
  • Loading branch information
mychidarko committed May 17, 2023
1 parent 4ff8c96 commit a84d855
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/scripts.php
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<?php

if (class_exists('\Leaf\App')) {
app()->attach(function () {
if (class_exists('\Leaf\Config')) {
\Leaf\Config::addScript(function () {
\Leaf\View::attach(\Leaf\BareUI::class, 'template');
});
}

0 comments on commit a84d855

Please sign in to comment.