django-templatetags-ext


Namedjango-templatetags-ext JSON
Version 1.0.3 PyPI version JSON
download
home_pagehttps://github.com/django-xxx/django-templatetags-extensions
SummaryDjango TemplateTags Extensions
upload_time2023-02-06 10:57:09
maintainer
docs_urlNone
authorHackathon
requires_python
license
keywords django template tags templatetags ext extensions
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            # django-templatetags-extensions
Django TemplateTags Extensions

## Installation
```shell
pip install django-templatetags-ext
```

## Settings.py
```python
INSTALLED_APPS = (
    ...
    'django_templatetags_ext',
    ...
)
```

## Usage
```python
{% 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 }}
```

            

Raw data

            {
    "_id": null,
    "home_page": "https://github.com/django-xxx/django-templatetags-extensions",
    "name": "django-templatetags-ext",
    "maintainer": "",
    "docs_url": null,
    "requires_python": "",
    "maintainer_email": "",
    "keywords": "Django Template Tags TemplateTags Ext Extensions",
    "author": "Hackathon",
    "author_email": "kimi.huang@brightcells.com",
    "download_url": "https://files.pythonhosted.org/packages/2f/96/3ce008b69bd310dcebedbec25c80dc0ede0e2a1d8831f8b5cb917f61d4c4/django-templatetags-ext-1.0.3.tar.gz",
    "platform": null,
    "description": "# django-templatetags-extensions\nDjango TemplateTags Extensions\n\n## Installation\n```shell\npip install django-templatetags-ext\n```\n\n## Settings.py\n```python\nINSTALLED_APPS = (\n    ...\n    'django_templatetags_ext',\n    ...\n)\n```\n\n## Usage\n```python\n{% load templatehelper %}\n\n{{ googol|googolformat }}\n{{ googol|googolformat:ndigits }}\n\n{{ googol|googolformat2 }}\n{{ googol|googolformat2:ndigits }}\n\n{{ price|fen2yuan }}\n{{ price|fen2yuan:ndigits }}\n\n{{ value|truncatechars2:length }}\n{{ value|truncatechars2:'length,truncate' }}\n\n{{ value|truncatewidth:length }}\n{{ value|truncatewidth:'length,truncate' }}\n\n{{ value|remove_line_break }}\n{{ value|remove_line_break:repl }}\n```\n",
    "bugtrack_url": null,
    "license": "",
    "summary": "Django TemplateTags Extensions",
    "version": "1.0.3",
    "split_keywords": [
        "django",
        "template",
        "tags",
        "templatetags",
        "ext",
        "extensions"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "82e1a56b9a92feda834a6aab2889b83f375429db6887d1eed563b45f8e420365",
                "md5": "605e23a9a4adc87d2acbbf024910897b",
                "sha256": "518d94fce2cd3987c8df03047a7b6c21ee6478843c3dbf64e6cbc0fe02e57c27"
            },
            "downloads": -1,
            "filename": "django_templatetags_ext-1.0.3-py2.py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "605e23a9a4adc87d2acbbf024910897b",
            "packagetype": "bdist_wheel",
            "python_version": "py2.py3",
            "requires_python": null,
            "size": 3192,
            "upload_time": "2023-02-06T10:57:06",
            "upload_time_iso_8601": "2023-02-06T10:57:06.951335Z",
            "url": "https://files.pythonhosted.org/packages/82/e1/a56b9a92feda834a6aab2889b83f375429db6887d1eed563b45f8e420365/django_templatetags_ext-1.0.3-py2.py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "2f963ce008b69bd310dcebedbec25c80dc0ede0e2a1d8831f8b5cb917f61d4c4",
                "md5": "dab22a280275a12f47e10f9aa7a7b4d9",
                "sha256": "11a6ef2cf5d9d0f524f8a559b73abfa72818ed8c2c4dce1086197c0b30f7b66c"
            },
            "downloads": -1,
            "filename": "django-templatetags-ext-1.0.3.tar.gz",
            "has_sig": false,
            "md5_digest": "dab22a280275a12f47e10f9aa7a7b4d9",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": null,
            "size": 2739,
            "upload_time": "2023-02-06T10:57:09",
            "upload_time_iso_8601": "2023-02-06T10:57:09.260643Z",
            "url": "https://files.pythonhosted.org/packages/2f/96/3ce008b69bd310dcebedbec25c80dc0ede0e2a1d8831f8b5cb917f61d4c4/django-templatetags-ext-1.0.3.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2023-02-06 10:57:09",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "github_user": "django-xxx",
    "github_project": "django-templatetags-extensions",
    "travis_ci": false,
    "coveralls": false,
    "github_actions": false,
    "lcname": "django-templatetags-ext"
}
        
Elapsed time: 0.09363s