Working version of wiki
This commit is contained in:
4
views/edit.jade
Normal file
4
views/edit.jade
Normal 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
6
views/layout.jade
Normal file
@@ -0,0 +1,6 @@
|
||||
!!!
|
||||
html
|
||||
head
|
||||
title= title
|
||||
link(rel='stylesheet', href='/stylesheets/style.css')
|
||||
body!= body
|
||||
3
views/view.jade
Normal file
3
views/view.jade
Normal file
@@ -0,0 +1,3 @@
|
||||
h1= title
|
||||
.article!= html
|
||||
a(href="/" + name + "/edit")= (exists ? "Edit" : "Create") + " this Page"
|
||||
Reference in New Issue
Block a user