Skip to main content

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

django-templatetags-ext-1.0.2.tar.gz (2.6 kB view details)

Uploaded Source

Built Distribution

django_templatetags_ext-1.0.2-py2.py3-none-any.whl (3.2 kB view details)

Uploaded Python 2 Python 3

File details

Details for the file django-templatetags-ext-1.0.2.tar.gz.

File metadata

  • Download URL: django-templatetags-ext-1.0.2.tar.gz
  • Upload date:
  • Size: 2.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/45.0.0 requests-toolbelt/0.9.1 tqdm/4.41.1 CPython/3.8.2

File hashes

Hashes for django-templatetags-ext-1.0.2.tar.gz
Algorithm Hash digest
SHA256 d927d1f6ef574f5e6bdf39aef74b24723a19aff7c03c98e8e5ed8c893721b55f
MD5 5dc2e3c99c4d4be57e59f13015fe91d3
BLAKE2b-256 356189150665c08f36cce539f9d54cd6da65f7f27faac4ea0d7f0697edf18464

See more details on using hashes here.

File details

Details for the file django_templatetags_ext-1.0.2-py2.py3-none-any.whl.

File metadata

  • Download URL: django_templatetags_ext-1.0.2-py2.py3-none-any.whl
  • Upload date:
  • Size: 3.2 kB
  • Tags: Python 2, Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/45.0.0 requests-toolbelt/0.9.1 tqdm/4.41.1 CPython/3.8.2

File hashes

Hashes for django_templatetags_ext-1.0.2-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 f178cd5f9122809c537c5302845d0ce5190888004d139d21eef8b54cad03e88d
MD5 cab354664bb45fe7a2cc00ff97c83eec
BLAKE2b-256 29c2e871db0be0cc343102c9c6363f7488e0cfd5b2d4556523b4fa5a05fcb203

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page