Open
Description
@marko/[email protected]
Details
The following should be equivalent:
<${input.renderBody} foo=bar />
<${input.renderBody}({ foo: bar }) />
But they aren't. It looks like Marko.Body<{ foo: bar }>
expects Directives & { value: [{ foo: bar; }]; }
, which may have been carried over from when the syntax for dynamic tag params was going to be <${input.renderBody}=[{ foo: bar}] />
. This should probably be updated.
Steps to Reproduce
Example template:
export interface Input {
renderBody: Marko.Body<[{ foo: string }]>;
}
<${input.renderBody} foo="bar" />
<${input.renderBody}({ foo: "bar" }) />