From 0ffd1750d956db35c6f741e19d3210f216eb9cb8 Mon Sep 17 00:00:00 2001 From: Thomas Voss Date: Sat, 2 Aug 2025 01:19:42 +0200 Subject: Use .Printer.Ftom instead of .Printer.Sprintf --- src/templates/coins-designs-ad.html.tmpl | 2 +- src/templates/coins-mintages.html.tmpl | 16 ++++++++-------- 2 files changed, 9 insertions(+), 9 deletions(-) (limited to 'src') diff --git a/src/templates/coins-designs-ad.html.tmpl b/src/templates/coins-designs-ad.html.tmpl index 567d2ff..9c9bda6 100644 --- a/src/templates/coins-designs-ad.html.tmpl +++ b/src/templates/coins-designs-ad.html.tmpl @@ -24,7 +24,7 @@
{{ .Get "Andorran landscapes, nature, fauna and flora" }}
{{ .Get "€0.10, €0.20 and €0.50" }}
{{ .Get "Andorra’s Romanesque art" }}
-
{{ .Printer.Sprintf "{1e:m}" (map "1e" 1.00) }}
+
{{ .Printer.Ftom 1 }}
{{ .Get "Casa de la Vall" }}

diff --git a/src/templates/coins-mintages.html.tmpl b/src/templates/coins-mintages.html.tmpl index 9624a8b..cfac73b 100644 --- a/src/templates/coins-mintages.html.tmpl +++ b/src/templates/coins-mintages.html.tmpl @@ -56,14 +56,14 @@ - - - - - - - - + + + + + + + + {{ $p := .Printer }} -- cgit v1.2.3
{{ .Get "Year" }}{{ .Printer.Sprintf "{N:m}" (map "N" 0.01) }}{{ .Printer.Sprintf "{N:m}" (map "N" 0.02) }}{{ .Printer.Sprintf "{N:m}" (map "N" 0.05) }}{{ .Printer.Sprintf "{N:m}" (map "N" 0.10) }}{{ .Printer.Sprintf "{N:m}" (map "N" 0.20) }}{{ .Printer.Sprintf "{N:m}" (map "N" 0.50) }}{{ .Printer.Sprintf "{N:m}" (map "N" 1.00) }}{{ .Printer.Sprintf "{N:m}" (map "N" 2.00) }}{{ .Printer.Ftom 0.01 }}{{ .Printer.Ftom 0.02 }}{{ .Printer.Ftom 0.05 }}{{ .Printer.Ftom 0.10 }}{{ .Printer.Ftom 0.20 }}{{ .Printer.Ftom 0.50 }}{{ .Printer.Ftom 1.00 }}{{ .Printer.Ftom 2.00 }}