Working version of wiki

This commit is contained in:
Tim Caswell
2012-01-18 17:01:17 +01:00
parent 2971151540
commit 5a1b0f85f4
11 changed files with 157 additions and 18 deletions

4
views/edit.jade Normal file
View File

@@ -0,0 +1,4 @@
h1= title
form(method="post", action="/" + name)
textarea(name="markdown")= markdown
input(type="submit")

6
views/layout.jade Normal file
View File

@@ -0,0 +1,6 @@
!!!
html
head
title= title
link(rel='stylesheet', href='/stylesheets/style.css')
body!= body

3
views/view.jade Normal file
View File

@@ -0,0 +1,3 @@
h1= title
.article!= html
a(href="/" + name + "/edit")= (exists ? "Edit" : "Create") + " this Page"