mirror of
https://github.com/rystaf/mlmym.git
synced 2024-11-05 06:43:21 +00:00
fix reply preview 500
This commit is contained in:
parent
624b7e4847
commit
a91b08547b
2
main.go
2
main.go
|
@ -56,7 +56,7 @@ func init() {
|
||||||
))
|
))
|
||||||
templates = make(map[string]*template.Template)
|
templates = make(map[string]*template.Template)
|
||||||
if !*watch {
|
if !*watch {
|
||||||
for _, name := range []string{"index.html", "login.html", "frontpage.html", "root.html", "settings.html", "xhr.html"} {
|
for _, name := range []string{"index.html", "login.html", "frontpage.html", "root.html", "settings.html", "xhr.html", "create_comment.html"} {
|
||||||
t := template.New(name).Funcs(funcMap)
|
t := template.New(name).Funcs(funcMap)
|
||||||
glob, err := t.ParseGlob("templates/*")
|
glob, err := t.ParseGlob("templates/*")
|
||||||
if err != nil {
|
if err != nil {
|
||||||
|
|
Loading…
Reference in a new issue