aboutsummaryrefslogtreecommitdiff
path: root/cmd/ciigo-example
diff options
context:
space:
mode:
authorShulhan <ms@kilabit.info>2019-08-06 00:13:54 +0700
committerShulhan <m.shulhan@gmail.com>2019-08-14 00:41:34 +0700
commitb1dd2bce666fe8217c35b9fab443035f25bfad26 (patch)
tree2b92c84d41bcabff29f7ff9f53139cee9e8e4368 /cmd/ciigo-example
parentb1bdf9d3fa2c830d4c59d3a56111e26a92619108 (diff)
downloadciigo-b1dd2bce666fe8217c35b9fab443035f25bfad26.tar.xz
cmd/ciigo: a CLI to convert, generate, and serve markup files
Here are the usage of CLI, ciigo [-template <file>] convert <dir> Scan the "dir" recursively to find markup files (.adoc or .md) and convert them into HTML files. The template "file" is optional, default to "templates/html.tmpl" in the current directory. ciigo [-template <file>] [-out <file>] generate <dir> Convert all markup files inside directory "dir" recursively and then embed them into ".go" source file. The output file is optional, default to "ciigo_static.go" in current directory. ciigo [-template <file>] [-address <ip:port>] serve <dir> Serve all files inside directory "dir" using HTTP server, watch changes on markup files and convert them to HTML files automatically. If the address is not set, its default to ":8080".
Diffstat (limited to 'cmd/ciigo-example')
-rw-r--r--cmd/ciigo-example/main.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/cmd/ciigo-example/main.go b/cmd/ciigo-example/main.go
index 2b98c13..a636b0e 100644
--- a/cmd/ciigo-example/main.go
+++ b/cmd/ciigo-example/main.go
@@ -13,7 +13,7 @@ import (
)
func main() {
- srv := ciigo.NewServer("./content", ":8080")
+ srv := ciigo.NewServer("./content", ":8080", "./templates/html.tmpl")
srv.Start()
}