Skip to content

Commit

Permalink
feat: add scripts to load on install
Browse files Browse the repository at this point in the history
  • Loading branch information
mychidarko committed May 13, 2023
1 parent 648bb21 commit b1fb33f
Show file tree
Hide file tree
Showing 3 changed files with 23 additions and 2 deletions.
13 changes: 13 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
# EditorConfig is awesome: https://EditorConfig.org

# top-most EditorConfig file
root = true

[*]
indent_style = space
indent_size = 4
end_of_line = lf
charset = utf-8
trim_trailing_whitespace = false
insert_final_newline = false
quote_type = single
7 changes: 5 additions & 2 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,11 @@
"autoload": {
"psr-4": {
"Leaf\\": "src"
}
},
"files": [
"src/scripts.php"
]
},
"minimum-stability": "dev",
"prefer-stable": true
"prefer-stable": true
}
5 changes: 5 additions & 0 deletions src/scripts.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
<?php

if (class_exists('\Leaf\App')) {
\Leaf\View::attach(\Leaf\BareUI::class, 'template');
}

0 comments on commit b1fb33f

Please sign in to comment.