aboutsummaryrefslogtreecommitdiffhomepage
path: root/src
diff options
context:
space:
mode:
authorThomas Voss <mail@thomasvoss.com> 2025-08-02 01:19:42 +0200
committerThomas Voss <mail@thomasvoss.com> 2025-08-02 01:19:42 +0200
commit0ffd1750d956db35c6f741e19d3210f216eb9cb8 (patch)
tree3ba5726c1f8f1c3eed08f8f9421f7ebd7b939d11 /src
parente4fbb05cc51ac1eb409808c79fc4527eec881195 (diff)
Use .Printer.Ftom instead of .Printer.Sprintf
Diffstat (limited to 'src')
-rw-r--r--src/templates/coins-designs-ad.html.tmpl2
-rw-r--r--src/templates/coins-mintages.html.tmpl16
2 files changed, 9 insertions, 9 deletions
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 @@
<dd>{{ .Get "Andorran landscapes, nature, fauna and flora" }}</dd>
<dt>{{ .Get "€0.10, €0.20 and €0.50" }}</dt>
<dd>{{ .Get "Andorra’s Romanesque art" }}</dd>
- <dt>{{ .Printer.Sprintf "{1e:m}" (map "1e" 1.00) }}</dt>
+ <dt>{{ .Printer.Ftom 1 }}</dt>
<dd>{{ .Get "Casa de la Vall" }}</dd>
</dl>
<p>
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 @@
<table class="mintage-table" role="grid">
<thead>
<th>{{ .Get "Year" }}</th>
- <th>{{ .Printer.Sprintf "{N:m}" (map "N" 0.01) }}</th>
- <th>{{ .Printer.Sprintf "{N:m}" (map "N" 0.02) }}</th>
- <th>{{ .Printer.Sprintf "{N:m}" (map "N" 0.05) }}</th>
- <th>{{ .Printer.Sprintf "{N:m}" (map "N" 0.10) }}</th>
- <th>{{ .Printer.Sprintf "{N:m}" (map "N" 0.20) }}</th>
- <th>{{ .Printer.Sprintf "{N:m}" (map "N" 0.50) }}</th>
- <th>{{ .Printer.Sprintf "{N:m}" (map "N" 1.00) }}</th>
- <th>{{ .Printer.Sprintf "{N:m}" (map "N" 2.00) }}</th>
+ <th>{{ .Printer.Ftom 0.01 }}</th>
+ <th>{{ .Printer.Ftom 0.02 }}</th>
+ <th>{{ .Printer.Ftom 0.05 }}</th>
+ <th>{{ .Printer.Ftom 0.10 }}</th>
+ <th>{{ .Printer.Ftom 0.20 }}</th>
+ <th>{{ .Printer.Ftom 0.50 }}</th>
+ <th>{{ .Printer.Ftom 1.00 }}</th>
+ <th>{{ .Printer.Ftom 2.00 }}</th>
</thead>
<tbody>
{{ $p := .Printer }}