I want to display a block/call mixin only if some condition is true. This is my code:
block details
- var details = get_coverage_details()
- var flag_display = all(value == [] for value in details.values())
if not flag_display:
+details(details)
get_coverage_details
is some python method in my code, which is getting me the dynamic content.
I am getting an error:
TemplateSyntaxError: expected token ',', got 'for'
The problem seems to be here all(value == [] for value in details.values())