From 3068cfd20c9f5774fbceacecf58c50400cdc5b24 Mon Sep 17 00:00:00 2001 From: Oscar Swanros Date: Thu, 12 Mar 2015 15:19:59 -0600 Subject: [PATCH] restart the server if a tmpl file is changed, too --- main.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/main.go b/main.go index e9310a0..ac0902d 100644 --- a/main.go +++ b/main.go @@ -169,7 +169,7 @@ func scanChanges(watchPath string, cb scanCallback) { return nil } - if filepath.Ext(path) == ".go" && info.ModTime().After(startTime) { + if (filepath.Ext(path) == ".go" || filepath.Ext(path) == ".tmpl") && info.ModTime().After(startTime) { cb(path) startTime = time.Now() return errors.New("done")