diff --git a/.gitignore b/.gitignore
new file mode 100644
index 0000000..0495d7d
--- /dev/null
+++ b/.gitignore
@@ -0,0 +1,2 @@
+pile.db
+vendor
diff --git a/www/_templates/.htaccess b/www/_templates/.htaccess
new file mode 100644
index 0000000..14249c5
--- /dev/null
+++ b/www/_templates/.htaccess
@@ -0,0 +1 @@
+Deny from all
\ No newline at end of file
diff --git a/www/_templates/Template.php b/www/_templates/Template.php
new file mode 100644
index 0000000..2739e6f
--- /dev/null
+++ b/www/_templates/Template.php
@@ -0,0 +1,31 @@
+vars[$name];
+ }
+
+ public function __set($name, $value) {
+ if($name == 'view_template_file') {
+ throw new Exception("Cannot bind variable named 'view_template_file'");
+ }
+ $this->vars[$name] = $value;
+ }
+
+ public function render($view_template_file) {
+ if(array_key_exists('view_template_file', $this->vars)) {
+ throw new Exception("Cannot bind variable called 'view_template_file'");
+ }
+ extract($this->vars);
+ ob_start();
+ include($view_template_file);
+ return ob_get_clean();
+ }
+}
+
+?>
\ No newline at end of file
diff --git a/www/_templates/front_doc_listing.php b/www/_templates/front_doc_listing.php
new file mode 100644
index 0000000..dbdefc4
--- /dev/null
+++ b/www/_templates/front_doc_listing.php
@@ -0,0 +1,16 @@
+
+
= $doc["Title"] ?>
+
= $doc["Author"] ?>
+
Published: = $doc["Published"] ?>
+
Tags:
+
+ foreach($tags as $tag){
+ echo '
" . $tag["Name"] . "";
+ }
+ ?>
+
+
Description: = $doc["Description"] ?>
+
+
\ No newline at end of file
diff --git a/www/_templates/front_intro.php b/www/_templates/front_intro.php
new file mode 100644
index 0000000..74853a5
--- /dev/null
+++ b/www/_templates/front_intro.php
@@ -0,0 +1,5 @@
+
+
This site is the sdbs pile, where we upload the stuff we consider important to the larger conceptual and thematic landscape of what we do: "confronting apathy", inter-subjectivity, the human right to self-determination, counter-culture and such...
+
Tohle je hromádka zajÃmavýho materiálu co nÄ›co znamená v kontextu sdbs - budeme sem postupnÄ› dávat ty nejdůležitÄ›jÅ¡Ã nebo nejzajÃmavÄ›jÅ¡Ã vÄ›ci, zatim se o tom ale nikde moc neÅ¡iÅ™te.
+
/-\
+
\ No newline at end of file
diff --git a/www/_templates/front_wrap.php b/www/_templates/front_wrap.php
new file mode 100644
index 0000000..b28cbfe
--- /dev/null
+++ b/www/_templates/front_wrap.php
@@ -0,0 +1,58 @@
+
+
+
+