summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
-rw-r--r--cmd/exttmpl/main.go4
-rw-r--r--src/templates.go20
2 files changed, 12 insertions, 12 deletions
diff --git a/cmd/exttmpl/main.go b/cmd/exttmpl/main.go
index 599879a..930f2d7 100644
--- a/cmd/exttmpl/main.go
+++ b/cmd/exttmpl/main.go
@@ -123,8 +123,8 @@ func process(tmplMsgs *[]pipeline.Message, node parse.Node) {
if sn, ok := arg.(*parse.StringNode); ok {
txt := collapse(sn.Text)
*tmplMsgs = append(*tmplMsgs, pipeline.Message{
- ID: pipeline.IDList{txt},
- Key: txt,
+ ID: pipeline.IDList{txt},
+ Key: txt,
Message: pipeline.Text{Msg: txt},
})
}
diff --git a/src/templates.go b/src/templates.go
index f0558f3..712e7ec 100644
--- a/src/templates.go
+++ b/src/templates.go
@@ -21,20 +21,20 @@ var (
notFoundTmpl = buildTemplate("404")
errorTmpl = buildTemplate("error")
templates = map[string]*template.Template{
- "/": buildTemplate("index"),
- "/about": buildTemplate("about"),
- "/coins": buildTemplate("coins"),
+ "/": buildTemplate("index"),
+ "/about": buildTemplate("about"),
+ "/coins": buildTemplate("coins"),
"/coins/mintages": buildTemplate("coins-mintages"),
- "/jargon": buildTemplate("jargon"),
- "/language": buildTemplate("language"),
+ "/jargon": buildTemplate("jargon"),
+ "/language": buildTemplate("language"),
}
funcmap = map[string]any{
- "denoms": denoms,
- "locales": locales,
- "safe": asHTML,
+ "denoms": denoms,
+ "locales": locales,
+ "safe": asHTML,
"strToCtype": strToCtype,
- "toUpper": strings.ToUpper,
- "tuple": templateMakeTuple,
+ "toUpper": strings.ToUpper,
+ "tuple": templateMakeTuple,
}
)