You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
23 lines
467 B
PHTML
23 lines
467 B
PHTML
3 years ago
|
<?php
|
||
|
|
||
|
/**
|
||
|
* Load settings from settings.json
|
||
|
*/
|
||
|
|
||
|
$_SETTINGS = [
|
||
|
"md_template" => "generic",
|
||
|
"source_folder" => "source",
|
||
|
"output_folder" => "public",
|
||
|
"folder_permission" => 775,
|
||
|
"context" => [
|
||
|
// Global variables for Mustache templates
|
||
|
]
|
||
|
];
|
||
|
|
||
|
$customsettings = json_decode(file_get_contents(__DIR__ . "/../../settings.json"), true);
|
||
|
|
||
|
foreach ($customsettings as $key => $val) {
|
||
|
$_SETTINGS[$key] = $val;
|
||
|
}
|
||
|
|
||
|
unset($customsettings);
|