Skip to content

[TwigComponent] Making self-closing HTML syntax render with simpler component() syntax #811

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

Merged

Conversation

weaverryan
Copy link
Member

Q A
Bug fix? yes (partial)
New feature? no
Tickets Workaround for #810
License MIT

…{ component() }}

Avoids a bug where we think that all {% component %} style tags contain blocks, which
cause them to not be allowed with live components
Copy link
Contributor

@WebMamba WebMamba left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Completly agree here! If you didn't make this PR, I planed to do the exact same one 😁

@kbond
Copy link
Member

kbond commented Apr 19, 2023

So to clarify, using a self closing twig tag allows it to be a live component?

@weaverryan
Copy link
Member Author

So to clarify, using a self closing twig tag allows it to be a live component?

Exactly right :)

@weaverryan weaverryan merged commit 3a2afe2 into symfony:2.x Apr 20, 2023
@weaverryan weaverryan deleted the twig-fix-html-component-self-closing branch April 20, 2023 15:53
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

Successfully merging this pull request may close these issues.

3 participants