1
0
Fork 0
forked from github/pelican

Add settings for custom Jinja globals and tests (#2715)

Pelican has a setting for custom Jinja filters but not custom tests or
custom environment namespace globals. This adds both of the latter.
This commit is contained in:
Justin Mayer 2020-04-12 17:03:53 +02:00 committed by GitHub
commit 7d19bcf5d4
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 103 additions and 2 deletions

View file

@ -120,6 +120,8 @@ DEFAULT_CONFIG = {
'output_format': 'html5',
},
'JINJA_FILTERS': {},
'JINJA_GLOBALS': {},
'JINJA_TESTS': {},
'JINJA_ENVIRONMENT': {
'trim_blocks': True,
'lstrip_blocks': True,