mirror of
https://github.com/there4/markdown-resume.git
synced 2024-12-03 08:59:35 -05:00
Initial work towards template support
* Simple refactoring of the config system * Add new unstyled template * Add new modern template (previously the only) * Add placeholder for blocky template * Relocate autoloader * Move build to ./bin
This commit is contained in:
17
vendor/autoload.php
vendored
Normal file
17
vendor/autoload.php
vendored
Normal file
@@ -0,0 +1,17 @@
|
||||
<?php
|
||||
|
||||
spl_autoload_register(function ($className) {
|
||||
$namespaces = explode('\\', $className);
|
||||
if (count($namespaces) > 1) {
|
||||
$classPath
|
||||
= APPLICATION_BASE_PATH
|
||||
. '/vendor/'
|
||||
. implode('/', $namespaces)
|
||||
. '.php';
|
||||
if (file_exists($classPath)) {
|
||||
require_once($classPath);
|
||||
}
|
||||
}
|
||||
});
|
||||
|
||||
/* End of file autoload.php */
|
||||
Reference in New Issue
Block a user