You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
To illustrate the issue, let's consider the following profile hierarchy:
profiles/
subdirA/profileA
subdirB/profileB
If I want to include profileA in profileB, it is currently impossible to do so using Jinja syntax because the import paths seem to be relative to the current profile. For example:
In profileB:
{%include"subdirA/profileA"%} # Not Working
{%import"subdirA/profileA"asvars%} # Not Working
However, if I use the following syntax, it works because the import path is relative to the root profiles directory:
include(subdirA/profileA) # Working
Currently, it is not possible to import the profile from a neighboring directory using Jinja syntax. Would it be possible to allow Jinja templates to be loaded from the root profiles directory? This change would provide greater flexibility in organizing my profiles.
What is your suggestion?
To illustrate the issue, let's consider the following profile hierarchy:
If I want to include
profileA
inprofileB
, it is currently impossible to do so using Jinja syntax because the import paths seem to be relative to the current profile. For example:In profileB:
However, if I use the following syntax, it works because the import path is relative to the root profiles directory:
Currently, it is not possible to import the profile from a neighboring directory using Jinja syntax. Would it be possible to allow Jinja templates to be loaded from the root profiles directory? This change would provide greater flexibility in organizing my profiles.
Perhaps the following function could be useful: Jinja2 FileSystemLoader.
Thank you for considering this enhancement!
Have you read the CONTRIBUTING guide?
The text was updated successfully, but these errors were encountered: