aboutsummaryrefslogtreecommitdiff
path: root/dynamic.go
diff options
context:
space:
mode:
Diffstat (limited to 'dynamic.go')
-rw-r--r--dynamic.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/dynamic.go b/dynamic.go
index 0307003..b6388bc 100644
--- a/dynamic.go
+++ b/dynamic.go
@@ -29,7 +29,7 @@ import (
29 29
30func handle(w http.ResponseWriter, r *http.Request) { 30func handle(w http.ResponseWriter, r *http.Request) {
31 // serve static files 31 // serve static files
32 if !(path.Ext(r.URL.Path) == "" || isParsable(path.Ext(r.URL.Path))) { 32 if !(path.Ext(r.URL.Path) == "" || isParsable(path.Ext(r.URL.Path), settings.exts)) {
33 http.ServeFile(w, r, path.Join(*settings.sourceDir, r.URL.Path)) 33 http.ServeFile(w, r, path.Join(*settings.sourceDir, r.URL.Path))
34 return 34 return
35 } 35 }
@@ -44,7 +44,7 @@ func handle(w http.ResponseWriter, r *http.Request) {
44 // parse these dirs 44 // parse these dirs
45 elements := make(map[string][]byte) 45 elements := make(map[string][]byte)
46 for _, dir := range dirs { 46 for _, dir := range dirs {
47 parse(path.Join(*settings.sourceDir, dir), elements, false) 47 parse(path.Join(*settings.sourceDir, dir), elements, settings.exts, false)
48 } 48 }
49 49
50 // render the page 50 // render the page