Skip to content

Commit 0855709

Browse files
committed
minor #8934 Explain why the Web Debug Toolbar is gone (marcelkorpel, javiereguiluz)
This PR was merged into the 4.0 branch. Discussion ---------- Explain why the Web Debug Toolbar is gone When rendering a response using a template, the Web Debug Toolbar is gone, which was confusing to me. Only after searching I found the reason: there is no body element when using this rendering method. It seems logical to me to also explain extending a template to incorporate base.html.twig, so the Toolbar re-appears. Commits ------- b1cf487 Wrap long lines 0c272c3 Reword explanation 1c25c7c Explain why the Web Debug Toolbar is gone
2 parents 50fcf4b + b1cf487 commit 0855709

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

page_creation.rst

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -262,6 +262,10 @@ to get your *new* lucky number!
262262

263263
http://localhost:8000/lucky/number
264264

265+
Now you may wonder where the Web Debug Toolbar has gone: that's because there is
266+
no ``</body>`` tag in the current template. You can add the body element yourself,
267+
or extend ``base.html.twig``, which contains all default HTML elements.
268+
265269
In the :doc:`/templating` article, you'll learn all about Twig: how to loop, render
266270
other templates and leverage its powerful layout inheritance system.
267271

0 commit comments

Comments
 (0)