diff options
Diffstat (limited to 'dynamic.go')
-rw-r--r-- | dynamic.go | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -29,7 +29,7 @@ import ( | |||
29 | 29 | ||
30 | func handle(w http.ResponseWriter, r *http.Request) { | 30 | func 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 |