feat: add formatnumber template function

This commit is contained in:
2026-06-23 17:32:18 +02:00
committed by Milas Holsting
parent 3c50fc5d53
commit 201d3479cd
2 changed files with 14 additions and 0 deletions

View File

@@ -65,6 +65,7 @@ func rendererFuncs() template.FuncMap {
"min": func(a, b int) int { return min(a, b) },
"int": toInt,
"percent": percent,
"formatNumber": formatNumber,
"formatDate": formatDate,
"nextSort": nextSort,
"urlquery": url.QueryEscape,