Skip to content

Commit ebfa3b8

Browse files
authored
Merge pull request #43 from sensiolabs/issue-10-templating
split the templating chapter
2 parents e0aa584 + 01a02c6 commit ebfa3b8

19 files changed

+797
-804
lines changed

bundles/override.rst

+1-1
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ Templates
1212

1313
For information on overriding templates, see
1414

15-
* :ref:`overriding-bundle-templates`.
15+
* :doc:`/templating/overriding`.
1616
* :doc:`/bundles/inheritance`
1717

1818
Routing

controller.rst

+2-1
Original file line numberDiff line numberDiff line change
@@ -483,7 +483,8 @@ creating unnecessarily deep structures::
483483
Templates are a generic way to render content in *any* format. And while in
484484
most cases you'll use templates to render HTML content, a template can just
485485
as easily generate JavaScript, CSS, XML or any other format you can dream of.
486-
To learn how to render different templating formats read the :ref:`template-formats`
486+
487+
To learn how to render different templating formats read the :doc:`/templating/formats`
487488
section of the Creating and Using Templates chapter.
488489

489490
The Symfony templating engine is explained in great detail in the

controller/error_pages.rst

+1-1
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ logic to determine the template filename:
6262
.. _overriding-or-adding-templates:
6363

6464
To override these templates, simply rely on the standard Symfony method for
65-
:ref:`overriding templates that live inside a bundle <overriding-bundle-templates>`:
65+
:doc:`overriding templates that live inside a bundle </templating/overriding>`:
6666
put them in the ``app/Resources/TwigBundle/views/Exception/`` directory.
6767

6868
A typical project that returns HTML and JSON pages, might look like this:

event_dispatcher/event_listener.rst

+1-1
Original file line numberDiff line numberDiff line change
@@ -220,7 +220,7 @@ Request Events, Checking Types
220220
------------------------------
221221

222222
A single page can make several requests (one master request, and then multiple
223-
sub-requests - typically by :ref:`templating-embedding-controller`). For the core
223+
sub-requests - typically by :doc:`/templating/embedding_controllers`). For the core
224224
Symfony events, you might need to check to see if the event is for a "master" request
225225
or a "sub request"::
226226

http_cache.rst

+1-1
Original file line numberDiff line numberDiff line change
@@ -1065,7 +1065,7 @@ independent of the rest of the page.
10651065
10661066
In this example, the full-page cache has a lifetime of ten minutes.
10671067
Next, include the news ticker in the template by embedding an action.
1068-
This is done via the ``render`` helper (See :ref:`templating-embedding-controller`
1068+
This is done via the ``render`` helper (see :doc:`/templating/embedding_controllers`
10691069
for more details).
10701070

10711071
As the embedded content comes from another page (or controller for that

reference/configuration/framework.rst

+1-1
Original file line numberDiff line numberDiff line change
@@ -1143,7 +1143,7 @@ is disabled. This can be either a template name or the content itself.
11431143

11441144
.. seealso::
11451145

1146-
See :ref:`book-templating-hinclude` for more information about hinclude.
1146+
See :doc:`/templating/hinclude` for more information about hinclude.
11471147

11481148
.. _reference-templating-form:
11491149

reference/twig_reference.rst

+2-2
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ render
3838
**type**: ``array`` **default**: ``[]``
3939

4040
Renders the fragment for the given controller (using the `controller`_ function)
41-
or URI. For more information, see :ref:`templating-embedding-controller`.
41+
or URI. For more information, see :doc:`/templating/embedding_controllers`.
4242

4343
The render strategy can be specified in the ``strategy`` key of the options.
4444

@@ -62,7 +62,7 @@ render_esi
6262

6363
Generates an ESI tag when possible or falls back to the behavior of
6464
`render`_ function instead. For more information, see
65-
:ref:`templating-embedding-controller`.
65+
:doc:`/templating/embedding_controllers`.
6666

6767
.. tip::
6868

0 commit comments

Comments
 (0)