Skip to content

Commit 6e60b9e

Browse files
committed
minor #8018 Minor reword for the intro of the Templating article (javiereguiluz)
This PR was merged into the 2.7 branch. Discussion ---------- Minor reword for the intro of the Templating article I don't like that the beginning of the article is *"As you know..."* ... because most of the people reading that will probably don't know 😄 I don't like either other minor things of that intro, so I propose this reword: ### Before ![before_text](https://user-images.githubusercontent.com/73419/27003536-ebdcaac6-4df8-11e7-9d4d-7db73d5223d4.png) ### After ![after_text](https://user-images.githubusercontent.com/73419/27003537-ee9530a8-4df8-11e7-8003-fd88bf15e889.png) Commits ------- dde719d Minor reword for the intro of the Templating article
2 parents 8ae7973 + dde719d commit 6e60b9e

File tree

1 file changed

+7
-9
lines changed

1 file changed

+7
-9
lines changed

templating.rst

+7-9
Original file line numberDiff line numberDiff line change
@@ -4,21 +4,19 @@
44
Creating and Using Templates
55
============================
66

7-
As you know, the :doc:`controller </controller>` is responsible for
8-
handling each request that comes into a Symfony application. In reality,
9-
the controller delegates most of the heavy work to other places so that
10-
code can be tested and reused. When a controller needs to generate HTML,
7+
As explained in :doc:`the previous article </controller>`, controllers are
8+
responsible for handling each request that comes into a Symfony application and
9+
the usually end up rendering a template to generate the response contents.
10+
11+
In reality, the controller delegates most of the heavy work to other places so
12+
that code can be tested and reused. When a controller needs to generate HTML,
1113
CSS or any other content, it hands the work off to the templating engine.
14+
1215
In this article, you'll learn how to write powerful templates that can be
1316
used to return content to the user, populate email bodies, and more. You'll
1417
learn shortcuts, clever ways to extend templates and how to reuse template
1518
code.
1619

17-
.. note::
18-
19-
How to render templates is covered in the
20-
:ref:`controller <controller-rendering-templates>` article.
21-
2220
.. index::
2321
single: Templating; What is a template?
2422

0 commit comments

Comments
 (0)