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

Allow macro state to resolve to the initial template context #542

Merged
merged 3 commits into from
Jul 21, 2024

Conversation

mitsuhiko
Copy link
Owner

This changes how macros are resolving variables. Previously if a macro did not enclose a value from the render scope it would only resolve down to the true global state passed to the environment. This changes it so that the initial state passed to the context can also be used.

Refs #535

@mitsuhiko mitsuhiko merged commit 998bbed into main Jul 21, 2024
30 checks passed
@mitsuhiko mitsuhiko deleted the feature/macro-globals branch July 21, 2024 14:13
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

Successfully merging this pull request may close these issues.

1 participant