aboutsummaryrefslogtreecommitdiff
path: root/watcher.go
diff options
context:
space:
mode:
Diffstat (limited to 'watcher.go')
-rw-r--r--watcher.go7
1 files changed, 7 insertions, 0 deletions
diff --git a/watcher.go b/watcher.go
index 2dbbfef..81108bc 100644
--- a/watcher.go
+++ b/watcher.go
@@ -100,6 +100,13 @@ func (w *watcher) start() (err error) {
return nil
}
+func (w *watcher) stop() {
+ w.watchDir.Stop()
+ if w.watchTemplate != nil {
+ w.watchTemplate.Stop()
+ }
+}
+
// watchFileMarkup watch the markup files inside the "content" directory,
// and re-generate them into HTML file when changed.
func (w *watcher) watchFileMarkup() {