https://github.com/5monkeys/djedi-cms-jinja2
https://github.com/5monkeys/djedi-cms-jinja2
Last synced: about 1 month ago
JSON representation
- Host: GitHub
- URL: https://github.com/5monkeys/djedi-cms-jinja2
- Owner: 5monkeys
- License: bsd-3-clause
- Created: 2015-06-30T13:14:35.000Z (almost 11 years ago)
- Default Branch: master
- Last Pushed: 2022-04-08T09:12:41.000Z (about 4 years ago)
- Last Synced: 2025-08-19T04:50:56.886Z (10 months ago)
- Language: Python
- Size: 17.6 KB
- Stars: 0
- Watchers: 9
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.rst
- Changelog: CHANGELOG.rst
- License: LICENSE
Awesome Lists containing this project
README
Djedi CMS Jinja2
================
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.
.. _Jinja2: http://jinja.pocoo.org/
.. _Django: http://djangoproject.com/
.. _Djedi CMS: http://djedi-cms.org/
.. _node: http://djedi-cms.org/usage.html#node-tag
.. _blocknode: http://djedi-cms.org/usage.html#blocknode-tag