diff --git a/.htaccess b/.htaccess new file mode 100644 index 0000000..1e79fc5 --- /dev/null +++ b/.htaccess @@ -0,0 +1,6 @@ + +RedirectMatch 404 /\.git + +RewriteEngine On +RewriteCond %{REQUEST_FILENAME} -f +RewriteRule (.*) /src/$0 [END] diff --git a/index.php b/index.php new file mode 100644 index 0000000..0b7c7f4 --- /dev/null +++ b/index.php @@ -0,0 +1,11 @@ +render('index.html',[ + "a_variable" => "is very spicy. In a good way." +]); +?> diff --git a/src/dergstyle.css b/src/dergstyle.css new file mode 100644 index 0000000..9001622 --- /dev/null +++ b/src/dergstyle.css @@ -0,0 +1,14 @@ + +body { + color: #ddd; + background: #151515; +} + +#big_title { + text-align: center; + margin-bottom: 0.3em; +} +#title_separator { + height: 2px; + background-color: #ddd; +} diff --git a/templates/about.html b/templates/about.html new file mode 100644 index 0000000..c8bd6f5 --- /dev/null +++ b/templates/about.html @@ -0,0 +1,3 @@ + + +{{ }} diff --git a/templates/index.html b/templates/index.html new file mode 100644 index 0000000..53bde4e --- /dev/null +++ b/templates/index.html @@ -0,0 +1,15 @@ + + + + Lucidragons' Fire + + + +

The dergsite

+
+ + + + diff --git a/templates/root.dergplate b/templates/root.dergplate new file mode 100644 index 0000000..fa4e62b --- /dev/null +++ b/templates/root.dergplate @@ -0,0 +1,18 @@ + + + PHP Test + + + Hello World

'; + + require 'src/templater.php'; + + $test = new TemplateFillout('test.dergplate'); + + $test->render(); + + ?> + +