aboutsummaryrefslogtreecommitdiff
path: root/testdata
diff options
context:
space:
mode:
authorShulhan <ms@kilabit.info>2021-02-21 18:58:31 +0700
committerShulhan <ms@kilabit.info>2021-02-21 18:58:31 +0700
commite554256948d0f7b4b71dfa78014e2172f11fc1c6 (patch)
tree93218f03ff20dfee0426b8013ef1d236bf3a4645 /testdata
parent251865e6abbaf1f1688d91b0de71aa745ea3042c (diff)
downloadciigo-e554256948d0f7b4b71dfa78014e2172f11fc1c6.tar.xz
all: implement Watch functionality
The Watch function, watch any changes on asciidoc files on directory "dir" recursively and changes on the HTML template file. If there is new or modified asciidoc files it will convert them into HTML files using HTML template automatically. If the HTML template file modified, it will re-convert all asciidoc files. If the HTML template file deleted, it will replace them with internal, default HTML template.
Diffstat (limited to 'testdata')
-rw-r--r--testdata/html.tmpl5
1 files changed, 5 insertions, 0 deletions
diff --git a/testdata/html.tmpl b/testdata/html.tmpl
new file mode 100644
index 0000000..967be5e
--- /dev/null
+++ b/testdata/html.tmpl
@@ -0,0 +1,5 @@
+<!DOCTYPE>
+<html>
+<head><title>{{.Title}}</title></head>
+<body>{{.Body}}</body>
+</html>