aboutsummaryrefslogtreecommitdiff
path: root/edit.go
diff options
context:
space:
mode:
Diffstat (limited to 'edit.go')
-rw-r--r--edit.go18
1 files changed, 0 insertions, 18 deletions
diff --git a/edit.go b/edit.go
deleted file mode 100644
index 3a4ca37..0000000
--- a/edit.go
+++ /dev/null
@@ -1,18 +0,0 @@
-package main
-
-import (
- "net/http"
- "text/template"
-)
-
-func init() {
- http.HandleFunc("/edit/", editHandler)
-}
-
-var edittmpl = template.Must(template.ParseFiles("tmpl/root", "tmpl/edit"))
-
-func editHandler(w http.ResponseWriter, r *http.Request) {
- title := r.URL.Path[len("/edit/"):]
- p, _ := loadPage(title)
- p.render(w, edittmpl)
-}