[Flask] commafy filter
Gabor Szabo
gabor at szabgab.com
Fri Apr 15 01:06:02 EDT 2016
Hi,
is there a filter in Jinja to commafy numbers? That is, to put a comma
in-front of ever 3 digits?
I could not find one yet, so I've been using this expression all over the
place:
{{ "{:,}".format( value ) }}
but I think it would be nicer if I could write
{{ value | commafy }}
regards
Gabor
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/flask/attachments/20160415/2119ca30/attachment.html>
More information about the Flask
mailing list