aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/templates.go
diff options
context:
space:
mode:
authorThomas Voss <mail@thomasvoss.com> 2025-08-03 16:13:26 +0200
committerThomas Voss <mail@thomasvoss.com> 2025-08-03 16:13:26 +0200
commit7950fc7d20444d7fc0605d54c8fa1a1b288c7d0a (patch)
tree5071bffb7cd6c61fb8c4f2c711b0a44666ba507c /src/templates.go
parentd36b7787ab87bd790ecd1108f67d93b5bc15ad71 (diff)
Improve the banknotes/codes page
Diffstat (limited to 'src/templates.go')
-rw-r--r--src/templates.go5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/templates.go b/src/templates.go
index a553766..3852b9d 100644
--- a/src/templates.go
+++ b/src/templates.go
@@ -31,6 +31,7 @@ var (
"locales": i18n.Locales,
"map": templateMakeMap,
"safe": asHTML,
+ "toString": toString,
"toUpper": strings.ToUpper,
"tuple": templateMakeTuple,
"withTranslation": withTranslation,
@@ -92,6 +93,10 @@ func asHTML(s string) template.HTML {
return template.HTML(s)
}
+func toString(s template.HTML) string {
+ return string(s)
+}
+
func templateMakeTuple(args ...any) []any {
return args
}