mirror of
https://github.com/getpelican/pelican.git
synced 2025-10-15 20:28:56 +02:00
Add JINJA_TESTS to use custom Jinja2 tests. Refs #1498
This commit is contained in:
parent
8519ccf18c
commit
800c3c1013
3 changed files with 6 additions and 0 deletions
|
|
@ -94,6 +94,7 @@ Setting name (followed by default value, if any)
|
|||
control data. For example: ``[".hg", ".git", ".bzr"]``
|
||||
``JINJA_EXTENSIONS = []`` A list of any Jinja2 extensions you want to use.
|
||||
``JINJA_FILTERS = {}`` A dictionary of custom Jinja2 filters you want to use.
|
||||
``JINJA_TESTS = {}`` A dictionary of custom Jinja2 tests you want to use
|
||||
The dictionary should map the filtername to the filter function.
|
||||
For example: ``{'urlencode': urlencode_filter}``
|
||||
See `Jinja custom filters documentation`_.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue