--- a/hgweb/hgweb.go Mon Mar 07 01:07:26 2022 -0600
+++ b/hgweb/hgweb.go Mon Mar 07 01:20:11 2022 -0600
@@ -2,6 +2,7 @@
@@ -16,6 +17,9 @@
hgkHttp "keep.imfreedom.org/grim/hgkeeper/http"
@@ -48,7 +52,12 @@
- t := template.Must(template.New("hgweb-config").Parse(FSMustString(false, "/hgweb.config")))
+ contents, err := files.ReadFile("files/hgweb.config") + t := template.Must(template.New("hgweb-config").Parse(string(contents))) data := map[string]string{
"HGWEB_ACCESS_CONFIG": access.HgwebConfigPath(),
"SITE_HGRC": filepath.Join(access.AdminRepoPath(), "site.hgrc"),
@@ -77,7 +86,12 @@
// create a template based for the cgi file
- t := template.Must(template.New("cgi").Parse(FSMustString(false, "/hgweb.cgi")))
+ contents, err := files.ReadFile("files/hgweb.cgi") + t := template.Must(template.New("cgi").Parse(string(contents))) data := map[string]string{