mirror of
https://github.com/twigphp/Twig.git
synced 2026-08-30 03:57:21 +00:00
minor #4787 Reword parent-child analogy in doc/tags/extends.rst (llupa)
This PR was merged into the 3.x branch.
Discussion
----------
Reword parent-child analogy in `doc/tags/extends.rst`
Commits
-------
64a70e96a6 Replace parent-child analogy in `doc/tags/extends.rst`
This commit is contained in:
@@ -71,8 +71,8 @@ value from the parent template is used instead.
|
||||
|
||||
You can't define multiple ``block`` tags with the same name in the same
|
||||
template. This limitation exists because a block tag works in "both"
|
||||
directions. That is, a block tag doesn't just provide a hole to fill - it also
|
||||
defines the content that fills the hole in the *parent*. If there were two
|
||||
directions. That is, a block tag doesn't just provide a slot to fill - it also
|
||||
defines the content that fills the slot 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.
|
||||
|
||||
|
||||
Reference in New Issue
Block a user