aboutsummaryrefslogtreecommitdiff
path: root/static.go
diff options
context:
space:
mode:
authorDimitri Sokolyuk <demon@dim13.org>2016-02-17 07:37:49 +0100
committerDimitri Sokolyuk <demon@dim13.org>2016-02-17 07:37:49 +0100
commit5b69df21d033c2454b9c93ea520b0fcb5c128e1c (patch)
tree6ec7956e21a7a1bfc19df073f44353cde6fa0f12 /static.go
parent525ef61eca5f36f6a6993fe9ec238efbdefb386e (diff)
Move style out of template
Diffstat (limited to 'static.go')
-rw-r--r--static.go8
1 files changed, 8 insertions, 0 deletions
diff --git a/static.go b/static.go
new file mode 100644
index 0000000..11f0fc6
--- /dev/null
+++ b/static.go
@@ -0,0 +1,8 @@
+package main
+
+import "net/http"
+
+func init() {
+ //http.Handle("/static/", http.StripPrefix("/static/", http.FileServer(http.Dir("static"))))
+ http.Handle("/static/", http.FileServer(http.Dir("assets")))
+}