Skip to content

Commit 5936877

Browse files
committed
Work around template issues
1 parent 465cadb commit 5936877

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

ui/index.html

+4-1
Original file line numberDiff line numberDiff line change
@@ -1447,7 +1447,10 @@ <h4 class="modal-title"><%- name %> / License</h4>
14471447
</script>
14481448

14491449
<script type="text/javascript">
1450-
var consts = {{.consts}}
1450+
var consts = {
1451+
{{range $k, $v := .consts}}"{{$k}}": {{$v}},
1452+
{{end}}
1453+
}
14511454
</script>
14521455
<script src="/assets/js/cactus.min.js"></script>
14531456
</body>

ui/pages.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,10 @@
33
package ui
44

55
import (
6-
"html/template"
76
"io/ioutil"
87
"mime"
98
"net/http"
9+
"text/template"
1010

1111
"github.com/hjr265/go-zrsc/zrsc"
1212

0 commit comments

Comments
 (0)