1
0
Fork 0
forked from github/pelican

Enhance JINJA_FILTERS setting docs (#2126)

This commit is contained in:
Cropse 2020-04-15 16:42:21 +08:00 committed by GitHub
commit 7e52b61934
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -98,7 +98,10 @@ Basic settings
should map the filtername to the filter function.
Example::
import sys
sys.path.append('to/your/path')
from custom_filter import urlencode_filter
JINJA_FILTERS = {'urlencode': urlencode_filter}
See: `Jinja custom filters documentation`_.