Skip to content

How can include a file with variable #261

Open
@yxwsbobo

Description

@yxwsbobo

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

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions