How can I determine if a Jinja2 template block is empty? August 31, 2023 by Tarik Simply call the block: {% if self.foo() %} - {% endif %}