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

[Turbo] Use blocks instead of partials to render turbo-streams #1045

Merged
merged 1 commit into from
Apr 18, 2024

Conversation

nicolas-grekas
Copy link
Member

@nicolas-grekas nicolas-grekas commented Aug 9, 2023

Q A
Bug fix? no
New feature?
Tickets -
License MIT

Relies on symfony/symfony#51327 for the call to renderBlock().

Using targets with a CSS selector empowers users with useful knowledge IMHO.

src/Turbo/doc/index.rst Outdated Show resolved Hide resolved
+ {{ block('task_form') }}
+ </template>
+</turbo-stream>
<turbo-stream action="replace" targets="#my_div_id">
Copy link
Member

Choose a reason for hiding this comment

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

Missing the closing block and this last turbo-stream looks extra to me

Copy link
Member Author

Choose a reason for hiding this comment

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

well actually, this is a diff that applies to the snippet on L366, so yes, the endblock is missing and this line is here because this is just a subset of the full file

src/Turbo/doc/index.rst Outdated Show resolved Hide resolved
@smnandre
Copy link
Collaborator

smnandre commented Apr 8, 2024

@nicolas-grekas is this ready for you ? Do you want me to handle last feedback you received ?

@nicolas-grekas
Copy link
Member Author

@smnandre thanks for the reminder, feedback answered.

@carsonbot carsonbot added the Status: Reviewed Has been reviewed by a maintainer label Apr 18, 2024
@kbond
Copy link
Member

kbond commented Apr 18, 2024

Thank you Nicolas.

@kbond kbond merged commit 9f9cecc into symfony:2.x Apr 18, 2024
2 of 5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Status: Reviewed Has been reviewed by a maintainer
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

6 participants