aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/templates.go
diff options
context:
space:
mode:
Diffstat (limited to 'src/templates.go')
-rw-r--r--src/templates.go11
1 files changed, 6 insertions, 5 deletions
diff --git a/src/templates.go b/src/templates.go
index e3a0465..ef7b0ec 100644
--- a/src/templates.go
+++ b/src/templates.go
@@ -17,6 +17,7 @@ import (
type templateData struct {
Debugp bool
Printer i18n.Printer
+ Printers map[string]i18n.Printer
Code, Type string
Mintages dbx.MintageData
Countries []country
@@ -27,11 +28,11 @@ var (
errorTmpl *template.Template
templates map[string]*template.Template
funcmap = map[string]any{
- "locales": i18n.Locales,
- "map": templateMakeMap,
- "safe": asHTML,
- "toUpper": strings.ToUpper,
- "tuple": templateMakeTuple,
+ "locales": i18n.Locales,
+ "map": templateMakeMap,
+ "safe": asHTML,
+ "toUpper": strings.ToUpper,
+ "tuple": templateMakeTuple,
}
)