Skip to content

Replace parent-child analogy in doc/tags/extends.rst#4787

Open
llupa wants to merge 1 commit intotwigphp:3.xfrom
llupa:better-language
Open

Replace parent-child analogy in doc/tags/extends.rst#4787
llupa wants to merge 1 commit intotwigphp:3.xfrom
llupa:better-language

Conversation

@llupa
Copy link
Contributor

@llupa llupa commented Mar 19, 2026

No description provided.

@llupa
Copy link
Contributor Author

llupa commented Mar 19, 2026

This might be a language / cultural thing. But the analogy about filling holes, was ... weird?

defines the content that fills the hole in the *parent*. If there were two
similarly-named ``block`` tags in a template, that template's parent wouldn't
know which one of the blocks' content to use.
directions. Think of each block as a named puzzle piece: it defines a slot
Copy link
Member

Choose a reason for hiding this comment

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

not sure we need this puzzle piece analogy.

Talking about slot instead of hole makes sense though. It will allow people to relate that to their knowledge of HTML shadow root which also uses that naming (it does not work exactly the same, but the idea of defining a place where content will be inserted is related)

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I restored the sentence how it was and replaced hole with slot.

@llupa llupa force-pushed the better-language branch from 3ddf10e to 64a70e9 Compare March 20, 2026 08:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

2 participants