Changing template engine to Mustache. Updating Bootstrap. Creating mustache helpers. Changing plugins on the base template
This commit is contained in:
@@ -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');
|
||||
}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user