Open stellR42 opened 2 years ago
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:
@partial-block
to the context and evaluate it according to whether block is set on the context;@
property.
Describe the bug
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:Block:
Conditional:
Expected behavior:
@partial-block
should be recognized in both the above scenarios and render the block content if it is provided.Test to reproduce