diff options
author | Thomas Voss <mail@thomasvoss.com> | 2025-07-29 21:05:15 +0200 |
---|---|---|
committer | Thomas Voss <mail@thomasvoss.com> | 2025-07-29 21:05:15 +0200 |
commit | 9956f3071549569f4f972331ab0756c4c88ab713 (patch) | |
tree | a6ec433cd24195feda6b397730ba64c113c9fde3 /src | |
parent | 6ae9d2efbe21867d7445663884b8d7c4c67b8b6f (diff) |
Use builtin printf
Diffstat (limited to 'src')
-rw-r--r-- | src/templates.go | 2 | ||||
-rw-r--r-- | src/templates/banknotes-codes.html.tmpl | 2 |
2 files changed, 1 insertions, 3 deletions
diff --git a/src/templates.go b/src/templates.go index 2b44f38..94d1acb 100644 --- a/src/templates.go +++ b/src/templates.go @@ -1,7 +1,6 @@ package app import ( - "fmt" "html/template" "io/fs" "log" @@ -30,7 +29,6 @@ var ( "locales": i18n.Locales, "map": templateMakeMap, "safe": asHTML, - "sprintf": fmt.Sprintf, "toUpper": strings.ToUpper, "tuple": templateMakeTuple, } diff --git a/src/templates/banknotes-codes.html.tmpl b/src/templates/banknotes-codes.html.tmpl index 9136c32..ea17307 100644 --- a/src/templates/banknotes-codes.html.tmpl +++ b/src/templates/banknotes-codes.html.tmpl @@ -312,7 +312,7 @@ <summary>{{ $p.GetN "{N} Euro" "{N} Euro" $d $args }}</summary> <img class="big" - src={{ sprintf "/codes/%s-%03d.jpg" (index . 2) $d }} + src={{ printf "/codes/%s-%03d.jpg" (index . 2) $d }} alt={{ $p.GetN "Printer code on a {N} euro bill" "Printer code on a {N} euro bill" $d $args }} > </details> |