Skip to content

Yield with component #28

@patricklx

Description

@patricklx

Can this be extended to yield with a component?
Could look like this

{{yield to="header" with=(component "header")}}

Then

<:header @title=abc \>

I know this wasn't part of the proposal, but i think its a good Idea.

Another idea is also to put the yield inside a html tag like a modifier and yield that whole block as inline component. That would require again another yield somewhere and also need to handle the this context correctly.
Could already be done with preprocessing and creating template only components ( and convert this to @this ) on thr fly

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions