0799250b8e
The base theme needs to be vanilla so it's easy to get going, so npm dependecies have been removed so the base script is pure JS. Also created an example config that will tell the system what theme it should be rendering for development. Updated the composer script to start a local php server for development.
17 lines
343 B
PHP
17 lines
343 B
PHP
<?php
|
|
|
|
namespace engine;
|
|
|
|
class StartKit
|
|
{
|
|
public function __construct()
|
|
{
|
|
$config = json_decode(file_get_contents("./config.json"), true);
|
|
$theme = $config["current_theme"];
|
|
new ThemeEngine(
|
|
"src/themes/theme-" . $theme,
|
|
"/src/themes/theme-" . $theme . "/" . $theme
|
|
);
|
|
}
|
|
}
|