mirror of
https://github.com/getpelican/pelican.git
synced 2025-10-15 20:28:56 +02:00
Added missing JINJA_FILTERS documentation
This commit is contained in:
parent
9eda0f79bd
commit
c6b943bfe9
1 changed files with 7 additions and 0 deletions
|
|
@ -67,6 +67,10 @@ Setting name (default value) What doe
|
||||||
content directory) to the destination (inside the output directory).
|
content directory) to the destination (inside the output directory).
|
||||||
For example: ``(('extra/robots.txt', 'robots.txt'),)``.
|
For example: ``(('extra/robots.txt', 'robots.txt'),)``.
|
||||||
`JINJA_EXTENSIONS` (``[]``) A list of any Jinja2 extensions you want to use.
|
`JINJA_EXTENSIONS` (``[]``) A list of any Jinja2 extensions you want to use.
|
||||||
|
`JINJA_FILTERSS` (``{}``) A list of custom Jinja2 filters you want to use.
|
||||||
|
The dictionnary should map the filtername to the filter function.
|
||||||
|
For exemple: ``{'urlencode': urlencode_filter}``
|
||||||
|
See `Jinja custom filters documentation`_.
|
||||||
`LOCALE` (''[#]_) Change the locale. A list of locales can be provided
|
`LOCALE` (''[#]_) Change the locale. A list of locales can be provided
|
||||||
here or a single string representing one locale.
|
here or a single string representing one locale.
|
||||||
When providing a list, all the locales will be tried
|
When providing a list, all the locales will be tried
|
||||||
|
|
@ -507,3 +511,6 @@ Example settings
|
||||||
|
|
||||||
.. literalinclude:: ../samples/pelican.conf.py
|
.. literalinclude:: ../samples/pelican.conf.py
|
||||||
:language: python
|
:language: python
|
||||||
|
|
||||||
|
|
||||||
|
.. _Jinja custom filters documentation: http://jinja.pocoo.org/docs/api/#custom-filters
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue