Jinja Macros: scope and template inheritance
Macro Scope and Template Inheritance n n Due to how scopes work in Jinja2, a macro defined in a child template does not override a macro with the same name in a parent template. The parent’s macro is always accessible and takes precedence within its scope, which prevents unintended overwrites. nn n Understanding the Scoping…
