diff --git a/galley.go b/galley.go index 86d7259..768addc 100644 --- a/galley.go +++ b/galley.go @@ -14,6 +14,7 @@ var templates = template.Must(template.ParseFiles("tmpl/edit.html", "tmpl/view.h var validPath = regexp.MustCompile("^/(edit|save|view)/([a-zA-Z0-9]+)$") func main() { + http.Handle("/static/", http.StripPrefix("/static/", http.FileServer(http.Dir("static")))) http.HandleFunc("/view/", makeHandler(viewHandler)) http.HandleFunc("/edit/", makeHandler(editHandler)) http.HandleFunc("/save/", makeHandler(saveHandler)) diff --git a/tmpl/view.html b/tmpl/view.html index be7879b..cce29cf 100644 --- a/tmpl/view.html +++ b/tmpl/view.html @@ -1,3 +1,14 @@ -
[edit]
-