-
-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
Template globals are not accessible within imports w/ enable_async #1494
Comments
Apologies, I accidentally pressed enter and posted this too soon. I will edit the original comment with more information shortly. |
I've had a look into the code to see if I can determine why this is happening, and I have identified the following line that stops the vars from being passed to the new context. Line 1094 in 647677d
Changing this to
|
Happy to review a PR |
* Copied tests from test_imports.py * Removed unused fixture in import tests
Cheers, hopefully the PR should resolve this! |
Template globals are not applied correctly when using the
enable_async
environment flag.When used normally, template globals can be used within imported macros.
With
enable_async=True
, template globals can only be accessed in macros within the immediate template.Example script:
Output
I expected the above output to be the same for sync and async.
Environment:
The text was updated successfully, but these errors were encountered: