mirror of
https://github.com/getpelican/pelican.git
synced 2025-10-15 20:28:56 +02:00
Enhance JINJA_FILTERS setting docs (#2126)
This commit is contained in:
parent
9eb259af82
commit
7e52b61934
1 changed files with 3 additions and 0 deletions
|
|
@ -98,7 +98,10 @@ Basic settings
|
||||||
should map the filtername to the filter function.
|
should map the filtername to the filter function.
|
||||||
|
|
||||||
Example::
|
Example::
|
||||||
|
import sys
|
||||||
|
sys.path.append('to/your/path')
|
||||||
|
|
||||||
|
from custom_filter import urlencode_filter
|
||||||
JINJA_FILTERS = {'urlencode': urlencode_filter}
|
JINJA_FILTERS = {'urlencode': urlencode_filter}
|
||||||
|
|
||||||
See: `Jinja custom filters documentation`_.
|
See: `Jinja custom filters documentation`_.
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue