rehartmann / JinTP

Ada parser for Jinja2 templates
BSD 2-Clause "Simplified" License
2 stars 2 forks source link

Request: Import #4

Open Lucretia opened 1 day ago

Lucretia commented 1 day ago

Having the import as functionality would be useful, I intend on using this for a largish project.

Lucretia commented 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.