Changing template engine to Mustache. Updating Bootstrap. Creating mustache helpers. Changing plugins on the base template

This commit is contained in:
ahwelp
2023-01-24 20:27:58 +00:00
parent e063895ccb
commit b1eb0a7a56
15 changed files with 259 additions and 289 deletions
+18
View File
@@ -0,0 +1,18 @@
<?php
namespace App\Core\Template;
class Template{
public function getTemplate($location){
$location = explode('-', $location);
if(array_search('../', $location)){
die;
}
echo file_get_contents(DIR_APP . $location[0] . '/' . $location[1] . '/views/' . $location[2] . '.mustache');
}
}