14 lines
345 B
Python
14 lines
345 B
Python
|
# https://github.com/kolypto/j2cli#customization
|
||
|
|
||
|
# http://jinja.pocoo.org/docs/2.10/api/#jinja2.Environment
|
||
|
def j2_environment_params(): return dict(
|
||
|
autoescape = True,
|
||
|
trim_blocks = True,
|
||
|
lstrip_blocks = True,
|
||
|
keep_trailing_newline = True,
|
||
|
extensions = (
|
||
|
"jinja2.ext.do",
|
||
|
"jinja2.ext.loopcontrols"
|
||
|
),
|
||
|
)
|