django-templatetags-extensions
Django TemplateTags Extensions
Installation
pip install django-templatetags-ext
Settings.py
INSTALLED_APPS = (
...
'django_templatetags_ext',
...
)
Usage
{% load templatehelper %}
{{ googol|googolformat }}
{{ googol|googolformat:ndigits }}
{{ googol|googolformat2 }}
{{ googol|googolformat2:ndigits }}
{{ price|fen2yuan }}
{{ price|fen2yuan:ndigits }}
{{ value|truncatechars2:length }}
{{ value|truncatechars2:'length,truncate' }}
{{ value|truncatewidth:length }}
{{ value|truncatewidth:'length,truncate' }}
{{ value|remove_line_break }}
{{ value|remove_line_break:repl }}
Metadata
Release files for django-templatetags-ext 1.0.3
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| django-templatetags-ext-1.0.3.tar.gz | 2.7 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| django_templatetags_ext-1.0.3-py2.py3-none-any.whl | Python 3, Python 2 | none | any | Details |
Total release size: 5.9 kB