Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can we have an optional but checked name on the end-snippet tag? #11588

Open
thebjorn opened this issue May 13, 2024 · 0 comments
Open

Can we have an optional but checked name on the end-snippet tag? #11588

thebjorn opened this issue May 13, 2024 · 0 comments

Comments

@thebjorn
Copy link

Describe the problem

Snippets can quickly become longer than a screenful and snippets can be deeply nested. It can be cumbersome to discover which starting tag belongs to the closing tag you're looking at.

Describe the proposed solution

Would it be possible to add a name to the closing tag, i.e.:

{#snippet header_slot()}
...
{/snippet header_slot}

the name should be optional, but if it is present the compiler should give an error if it doesn't match (or the nesting doesn't match) the name in the starting tag.

Importance

would make my life easier

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant