Django TemplateTags Extensions
Project description
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 }}
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Close
Hashes for django-templatetags-ext-1.0.2.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | d927d1f6ef574f5e6bdf39aef74b24723a19aff7c03c98e8e5ed8c893721b55f |
|
MD5 | 5dc2e3c99c4d4be57e59f13015fe91d3 |
|
BLAKE2b-256 | 356189150665c08f36cce539f9d54cd6da65f7f27faac4ea0d7f0697edf18464 |
Close
Hashes for django_templatetags_ext-1.0.2-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | f178cd5f9122809c537c5302845d0ce5190888004d139d21eef8b54cad03e88d |
|
MD5 | cab354664bb45fe7a2cc00ff97c83eec |
|
BLAKE2b-256 | 29c2e871db0be0cc343102c9c6363f7488e0cfd5b2d4556523b4fa5a05fcb203 |