Open Lucretia opened 1 day ago
Seems this is required to get macros to work according to the jinja docs.
If the macro was defined in a different template, you have to import it first.
I need this functionality for a project. I just found out why my jinja2-cli test didn't work, it needs the "with context" part of the import, which you would also need to implement to get it to pass on the environment to the macros, which is what I need.
Having the import as functionality would be useful, I intend on using this for a largish project.