aboutsummaryrefslogtreecommitdiff
path: root/cmd
diff options
context:
space:
mode:
Diffstat (limited to 'cmd')
-rw-r--r--cmd/www-go-proposal/main.go15
1 files changed, 10 insertions, 5 deletions
diff --git a/cmd/www-go-proposal/main.go b/cmd/www-go-proposal/main.go
index 6d8df0c..2581186 100644
--- a/cmd/www-go-proposal/main.go
+++ b/cmd/www-go-proposal/main.go
@@ -10,6 +10,7 @@ import (
"strings"
"git.sr.ht/~shulhan/ciigo"
+ "git.sr.ht/~shulhan/pakakeh.go/lib/http"
"git.sr.ht/~shulhan/pakakeh.go/lib/memfs"
"git.sr.ht/~shulhan/pakakeh.go/lib/systemd"
)
@@ -18,8 +19,11 @@ var memFS *memfs.MemFS
func main() {
var convertOpts = ciigo.ConvertOptions{
- Root: `.`,
- Exclude: []string{`(cmd|.git|go.mod|go.sum)`},
+ Root: `.`,
+ Exclude: []string{
+ `(cmd|.git|go.mod|go.sum)`,
+ `www-go-proposal`,
+ },
HTMLTemplate: `html.tmpl`,
}
var embedOpts = ciigo.EmbedOptions{
@@ -30,8 +34,9 @@ func main() {
},
}
var serveOpts = ciigo.ServeOptions{
- ConvertOptions: convertOpts,
- Mfs: memFS,
+ ServerOptions: http.ServerOptions{
+ Memfs: memFS,
+ },
}
flag.BoolVar(&serveOpts.IsDevelopment, `dev`, false,
@@ -62,7 +67,7 @@ func main() {
gotAddr, serveOpts.Address)
}
}
- err = ciigo.Serve(serveOpts)
+ err = ciigo.Serve(serveOpts, convertOpts)
}
if err != nil {
log.Fatal(err)