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

How can include a file with variable #261

Open
yxwsbobo opened this issue Feb 27, 2023 · 0 comments
Open

How can include a file with variable #261

yxwsbobo opened this issue Feb 27, 2023 · 0 comments

Comments

@yxwsbobo
Copy link

i wan to use include to reference a file, but the dir may changed, so i wan to use like this:

{% include "{{env.path}}/some_values.txt" %}

but it doesn't work ,throw an exception [inja.exception.file_error] failed accessing file at '{{env.path}}/some_values.txt'

How can I do

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant