Jinja variants of the Djedi template tags.
Project description
This module provides Jinja2 versions of the Django template tags provided by Djedi CMS.
djedi_jinja.NodeExtension
Jinja2 extension providing the same functionality and syntax as the Django tags node and blocknode.
It also has the following extra bonuses:
Intelligently buffers nodes to be able to use get_many from cache, even when Jinja2’s template parsing cache is enabled, unlike the Django counterpart.
Possible to pass variables as URI argument to allow “dynamic” node URIs, though this will make the node unbufferable, so use with care.
djedi_jinja.node
Jinja2 global function with the same functionality as the Django tag node.
Note: As of 2.0 it is recommended to use the node tag provided by the extension instead. This is still provided for special cases and backwards compatibility.
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
Hashes for djedi_cms_jinja2-2.0-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | e0ddf671ae3d6dbb1ae71a2caf566063ea565b219199fa9f334972470e69414d |
|
MD5 | d444348c2390a1b2166463f4b8d6ab8c |
|
BLAKE2b-256 | 6b5a88f69a74162ba53a098418e1c49006c11d1589cb686932f3c416c2c68fd5 |