Skip to main content

Django TemplateTags Extensions

Project description

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 }}

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.3.tar.gz (2.7 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

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

Uploaded Python 2Python 3

File details

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

File metadata

  • Download URL: django-templatetags-ext-1.0.3.tar.gz
  • Upload date:
  • Size: 2.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.11.1

File hashes

Hashes for django-templatetags-ext-1.0.3.tar.gz
Algorithm Hash digest
SHA256 11a6ef2cf5d9d0f524f8a559b73abfa72818ed8c2c4dce1086197c0b30f7b66c
MD5 dab22a280275a12f47e10f9aa7a7b4d9
BLAKE2b-256 2f963ce008b69bd310dcebedbec25c80dc0ede0e2a1d8831f8b5cb917f61d4c4

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for django_templatetags_ext-1.0.3-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 518d94fce2cd3987c8df03047a7b6c21ee6478843c3dbf64e6cbc0fe02e57c27
MD5 605e23a9a4adc87d2acbbf024910897b
BLAKE2b-256 82e1a56b9a92feda834a6aab2889b83f375429db6887d1eed563b45f8e420365

See more details on using hashes here.

Supported by

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