Skip to content

Commit 2343b04

Browse files
committed
Enable expression-statement extension that adds the do tag.
1 parent b9900aa commit 2343b04

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

docs/changes.rst

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ Changes
66
4.0.0 to 4.1.0
77
--------------
88

9+
* Enable expression-statement extension that adds the do tag.
910
* Added raw keyword argument to filesource function, which defaults to False.
1011
* Added keep option for `generate` command, which does not remove an existing deploy directory.
1112
* Load newer versions of bootstrap, fontawesome and jquery via CDN.

logya/template.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,9 @@ def __init__(self, logya_inst):
5353
# Enable with statement for nested variable scopes.
5454
self.env.add_extension('jinja2.ext.with_')
5555

56+
# Enable expression-statement extension that adds the do tag.
57+
self.env.add_extension('jinja2.ext.do')
58+
5659
# Trim whitespace around template tags if configured.
5760
tpl_settings = logya_inst.config.get('template')
5861
if tpl_settings and tpl_settings.get('trim_whitespace'):

0 commit comments

Comments
 (0)