8000 minor #12548 Update templates.rst (joelindix) · symfony/symfony-docs@b154f45 · GitHub
[go: up one dir, main page]

Skip to content

Commit b154f45

Browse files
committed
minor #12548 Update templates.rst (joelindix)
This PR was merged into the 4.3 branch. Discussion ---------- Update templates.rst <!-- If your pull request fixes a BUG, use the oldest maintained branch that contains the bug (see https://symfony.com/roadmap for the list of maintained branches). If your pull request documents a NEW FEATURE, use the same Symfony branch where the feature was introduced (and `master` for features of unreleased versions). --> In the last example of 'Template Inheritance and Layouts' the content block is defined in`blog/layout.html.twig`, not `blog/index.html.twig` Commits ------- 7ce0f32 Update templates.rst
2 parents 1146cd9 + 7ce0f32 commit b154f45

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

templates.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -893,7 +893,7 @@ template, such as ``blog/index.html.twig``, which displays the blog index:
893893

894894
This template extends from the second-level template (``blog/layout.html.twig``)
895895
but overrides blocks of different parent templates: ``content`` from
896-
``blog/index.html.twig`` and ``title`` from ``base.html.twig``.
896+
``blog/layout.html.twig`` and ``title`` from ``base.html.twig``.
897897

898898
When you render the ``blog/index.html.twig`` template, Symfony uses three
899899
different templates to create the final contents. This inheritance mechanism

0 commit comments

Comments
 (0)
0