Skip to content

Feature: Shorthand syntax for children() #15124

@webJose

Description

@webJose

Describe the problem

As I generate components that pass helpful data in the form of snippet parameters, I cannot help but wonder how passing from nothing to {#snippet children(a, b, c)} ... {/snippet} just to be able to access a, b and c is annoying.

Describe the proposed solution

How about a shorthand syntax for the special and predefined case of children?

<Component>
    {# (a, b, c)}
    {/}
</Component>

UPDATE

Inspired by the attachments syntax:

<Component params(a, b, c)>
    <!-- We can use variables a, b and c here -->
</Component>

Importance

nice to have

Metadata

Metadata

Assignees

No one assigned

    Labels

    awaiting submitterneeds a reproduction, or clarification

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions