Filter that adds a period at the end of a string
Yeah, I know this is a very basic filter, but I thought I might as well share it with the world...
- text
- string
- stringformat
- string-formatting
Yeah, I know this is a very basic filter, but I thought I might as well share it with the world...
Formats a django variable using a python string formatting as specified in another template variable. Similar to |stringformat. Takes two arguments: the django template variable with the item to be formatted and the django template variable containing the format string. {% pyformat number formatstringvar %} Place this file in `appname/templatetags/pyformat.py` and you're good.
2 snippets posted so far.