jinja2 extensions that add django tags
Project description
This little library contains extensions for jinja2 that add template tags to jinja2 that your are used to from django templates.
Usage
To use the tags, just run setup.py install and add the extensions to your TEMPLATES settings:
TEMPLATES = [ { 'BACKEND': 'django.template.backends.jinja2.Jinja2', 'DIRS': [], 'APP_DIRS': True, 'OPTIONS': { 'extensions': [ 'jdj_tags.extensions.DjangoStatic', 'jdj_tags.extensions.DjangoI18n', ] }, }, }
If you want all tags at once use jdj_tags.extensions.DjangoCompat in the extensions Option.
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
jinja2-django-tags-0.1.tar.gz
(5.8 kB
view hashes)
Built Distribution
Close
Hashes for jinja2_django_tags-0.1-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 64b80b6640a4943513bd850ba98e8e5e680fc20f8916340bfde124b89c7984a3 |
|
MD5 | 6b07627e7fc6ac368f3eb9bb6e6b8dab |
|
BLAKE2b-256 | 1328258d4db3f0b19a9789941bee59fbe62d5501b551149697528d97e82cddab |