tpl/lang: Add NumFmt function
authorCameron Moore <moorereason@gmail.com>
Thu, 29 Dec 2016 04:09:31 +0000 (22:09 -0600)
committerBjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com>
Thu, 18 May 2017 06:49:20 +0000 (09:49 +0300)
commit93b3b1386714999d716e03b131f77234248f1724
tree999a80a37b2ed0564ed72bbae89f4c240e6f39ce
parente92ce83d5e8837190511f5a73323e49eeb8466cd
tpl/lang: Add NumFmt function

NumFmt formats a number with a given precision using the requested
decimal, grouping, and negative characters.

Fixes #1444
docs/content/templates/functions.md
tpl/lang/init.go
tpl/lang/lang.go
tpl/lang/lang_test.go [new file with mode: 0644]