Skip to content

Fix block param scope leaked into partials#496

Merged
sunng87 merged 6 commits into
masterfrom
fix/partial-context
Mar 7, 2022
Merged

Fix block param scope leaked into partials#496
sunng87 merged 6 commits into
masterfrom
fix/partial-context

Conversation

@sunng87

@sunng87 sunng87 commented Mar 4, 2022

Copy link
Copy Markdown
Owner

Fixes #495

This patch fixes issue mentioned in #495, that block params like {{#each data as |name|}} leaked into partials, so that partial context was override. An example of javascript version is here.

The fix removes all existed blocks from partial render context, local_rc as in partial.rs.

@sunng87 sunng87 marked this pull request as ready for review March 5, 2022 01:52
@sunng87 sunng87 merged commit 1b7522b into master Mar 7, 2022
@sunng87 sunng87 deleted the fix/partial-context branch March 7, 2022 16:16
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.

Partial parameters should have precedence over parent context

1 participant