You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
@partial-block not working as partial block or as conditional #519
I'm trying to register a partial that can either be used as a block, with block content, or inline without content. However, both methods I tried using to accomplish this aren't working because @partial-block doesn't seem to be properly recognized. The only way I can get @partial-block to render is by using {{> @partial-block}} on it's own. Both of the following cases don't render anything:
The problem is in the implementation of @partial-block itself. Right now it is not implemented as a property of the context.
I see couple ways to fix it:
Add virtual property @partial-block to the context and evaluate it according to whether block is set on the context;
Rewrite current implementation and implement it as actual context @ property.
Activity
oformaniuk commentedon Apr 27, 2022
The problem is in the implementation of
@partial-blockitself. Right now it is not implemented as a property of the context.I see couple ways to fix it:
@partial-blockto the context and evaluate it according to whether block is set on the context;@property.fix: @partial-block usable in #if and as block partial (issue #519)
Merge pull request #624 from Handlebars-Net/worktree-agent-a5918f4ed6…