Skip to content

Fix issue when using partial context within each block#536

Merged
sunng87 merged 3 commits into
masterfrom
fix/partial-content-within-each
Oct 5, 2022
Merged

Fix issue when using partial context within each block#536
sunng87 merged 3 commits into
masterfrom
fix/partial-content-within-each

Conversation

@sunng87

@sunng87 sunng87 commented Oct 4, 2022

Copy link
Copy Markdown
Owner

Fixes #534

In previous implementation, block are pushed to render context at last. However, during the context merge phase, we use Path::current() which assumes block already pushed to render context. This patch reorganized its sequence to make sure context is merged with given path.

The context for partial block is wrong when included in a each block
@sunng87 sunng87 force-pushed the fix/partial-content-within-each branch from 1bbd495 to eb56b39 Compare October 4, 2022 08:53
@sunng87 sunng87 force-pushed the fix/partial-content-within-each branch from 133030c to 364ff85 Compare October 4, 2022 09:23
@sunng87 sunng87 marked this pull request as ready for review October 4, 2022 13:00
@sunng87 sunng87 merged commit beb1f52 into master Oct 5, 2022
sunng87 added a commit that referenced this pull request Oct 5, 2022
Fix issue when using partial context within each block
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.

Issue with dynamic template?

1 participant