File tree Expand file tree Collapse file tree 1 file changed +7
-9
lines changed Expand file tree Collapse file tree 1 file changed +7
-9
lines changed Original file line number Diff line number Diff line change 44Creating 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,
1113CSS or any other content, it hands the work off to the templating engine.
14+
1215In this article, you'll learn how to write powerful templates that can be
1316used to return content to the user, populate email bodies, and more. You'll
1417learn shortcuts, clever ways to extend templates and how to reuse template
1518code.
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
You can’t perform that action at this time.
0 commit comments