diff options
Diffstat (limited to 'render')
-rw-r--r-- | render/render.go | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/render/render.go b/render/render.go index ba8e52b..bf53208 100644 --- a/render/render.go +++ b/render/render.go @@ -77,7 +77,11 @@ func Init() { tx := template.New("t").Funcs(tmplFuncs) templates[tf], err = tx.ParseFiles(base, t) if err != nil { - panic(err) + // temporary files can confuse this, especially when + // running the file system watcher so we silently + // ignore any templates that disappeared since we started + // since this is usually not a real error condition + delete(templates, tf) } } rel_href = regexp.MustCompile(`href="/(.+)"`) |