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:
parent
7bbd3dc6fb
commit
7d19bcf5d4
4 changed files with 103 additions and 2 deletions
|
|
@ -120,6 +120,8 @@ DEFAULT_CONFIG = {
|
|||
'output_format': 'html5',
|
||||
},
|
||||
'JINJA_FILTERS': {},
|
||||
'JINJA_GLOBALS': {},
|
||||
'JINJA_TESTS': {},
|
||||
'JINJA_ENVIRONMENT': {
|
||||
'trim_blocks': True,
|
||||
'lstrip_blocks': True,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue