Skip to content

Fix EagerFromTag reconstruction when template file cannot be resolved#1241

Merged
jasmith-hs merged 1 commit intomasterfrom
fix-eager-from-reconstruction
Apr 29, 2025
Merged

Fix EagerFromTag reconstruction when template file cannot be resolved#1241
jasmith-hs merged 1 commit intomasterfrom
fix-eager-from-reconstruction

Conversation

@jasmith-hs
Copy link
Contributor

Makes it more like EagerImportTag's reconstruction logic.

There was a minor bug where the {% from foo import bar %} token was not marked as a deferred token when it was reconstructed. I made the reconstruction follow the logic that is done for EagerImportTag when the template file cannot be reconstructed so it will be marked as a DeferredToken and the set and used variables can be deferred when necessary.

Makes it more like EagerImportTag's reconstruction logic
Copy link

@rewaddell rewaddell left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

cool!

@jasmith-hs jasmith-hs merged commit 8f1694a into master Apr 29, 2025
3 checks passed
@jasmith-hs jasmith-hs deleted the fix-eager-from-reconstruction branch April 29, 2025 15:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants