Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

jinja profile rendering paths #3950

Merged
merged 2 commits into from
Dec 18, 2024
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions reference/config_files/profiles.rst
Original file line number Diff line number Diff line change
Expand Up @@ -626,6 +626,10 @@ Some of the capabilities of the profile templates are:
[settings]
build_type = {{ vars.a }}

When including or importing other files using relative paths, the Jinja renderer uses the base path of the
current profile file as the first location to look for. If this search fails, the Jinja rendered
memsharded marked this conversation as resolved.
Show resolved Hide resolved
will also start looking in the Conan home profiles folder (typically in ``<userhome>/.conan2/profiles``).

- Any other feature supported by *jinja2* is possible: for loops, if-else, etc. This
would be useful to define custom per-package settings or options for multiple packages
in a large dependency graph.
Expand Down