Difference of writing jinja2 macro in one line V.S. writing macro in multiple lines?
Difference of writing jinja2 macro in one line V.S. writing macro in multiple lines? Question: I have next jinja2 template: cfg.jinja2: {% macro cfg() %}ABC{% endmacro %} {% macro cfg2() %} ABC {% endmacro %} resource: {{ cfg()|indent(4) }} {{ cfg2()|indent(4) }} And, next python file: test.py: import os from jinja2 import Environment, FileSystemLoader path_dir …