diff --git a/.gitignore b/.gitignore
new file mode 100644
index 0000000..d781e64
--- /dev/null
+++ b/.gitignore
@@ -0,0 +1,2 @@
+.vscode/
+cache/
diff --git a/admin/modules/default/exampleModule.php b/admin/modules/default/exampleModule.php
deleted file mode 100644
index 2a33568..0000000
--- a/admin/modules/default/exampleModule.php
+++ /dev/null
@@ -1,3 +0,0 @@
-function testModule($modulesVars, $elementVars) {
- return new DO
-}
\ No newline at end of file
diff --git a/admin/modules/default/headGenerator.php b/admin/modules/default/headGenerator.php
new file mode 100644
index 0000000..cca252c
--- /dev/null
+++ b/admin/modules/default/headGenerator.php
@@ -0,0 +1,5 @@
+Title";
+}
diff --git a/admin/settings/admin.json b/admin/settings/admin.json
index ce6b10a..d117f6e 100644
--- a/admin/settings/admin.json
+++ b/admin/settings/admin.json
@@ -1,4 +1,5 @@
{
"theme": "default",
+ "cache": true,
"modules": ["default"]
-}
\ No newline at end of file
+}
diff --git a/admin/settings/templates.json b/admin/settings/templates.json
index e75d0bf..ba2ab81 100644
--- a/admin/settings/templates.json
+++ b/admin/settings/templates.json
@@ -1,6 +1 @@
-{
- "default": {
- "URI": "pouet/pouet.php",
- "static": true
- }
-}
\ No newline at end of file
+{"Page":{"URI":"templates\/page.php","function":"page","static":true}}
diff --git a/admin/system/functions.php b/admin/system/functions.php
new file mode 100644
index 0000000..ed85c5e
--- /dev/null
+++ b/admin/system/functions.php
@@ -0,0 +1,55 @@
+
diff --git a/admin/system/website.php b/admin/system/website.php
new file mode 100644
index 0000000..a35c1ba
--- /dev/null
+++ b/admin/system/website.php
@@ -0,0 +1,40 @@
+root = $root;
+ }
+
+ private function getTemplateFileURI() {
+ return $this->root . "/admin/settings/" . self::TEMPLATEJSON;
+ }
+
+ public function addTemplate(String $name, String $path, String $func, $bool) {
+ var_dump($_SERVER);
+
+ $val = array(
+ $name => array(
+ "URI" => $path,
+ "function" => $func,
+ "static" => $bool
+ )
+ );
+ if(! file_exists($this->getTemplateFileURI())) {
+ file_put_contents($this->getTemplateFileURI(), json_encode($val));
+ } else {
+ $json = json_decode(file_get_contents($this->getTemplateFileURI()), true);
+ $json = array_merge($json, $val);
+ file_put_contents($this->getTemplateFileURI(), json_encode($json));
+ }
+ }
+
+ public function addJS() {
+
+ }
+}
diff --git a/admin/themes/default/templates/page.php b/admin/themes/default/templates/page.php
index 15c5adc..41d3e68 100644
--- a/admin/themes/default/templates/page.php
+++ b/admin/themes/default/templates/page.php
@@ -1,3 +1,13 @@
\ No newline at end of file
+function page() {
+// require_once "includes/header.php";
+
+// echo PAGE["content"];
+
+// require_once "includes/footer.php";
+
+ return "
pouet