Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 3b1b16d

Browse filesBrowse files
javiereguiluzweaverryan
authored andcommitted
Fixes and rewords
1 parent 37ef9bb commit 3b1b16d
Copy full SHA for 3b1b16d

File tree

Expand file treeCollapse file tree

1 file changed

+8
-6
lines changed
Filter options
Expand file treeCollapse file tree

1 file changed

+8
-6
lines changed

‎reference/configuration/twig.rst

Copy file name to clipboardExpand all lines: reference/configuration/twig.rst
+8-6Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -103,8 +103,6 @@ TwigBundle Configuration ("twig")
103103
Configuration
104104
-------------
105105

106-
.. _config-twig-exception-controller:
107-
108106
auto_reload
109107
~~~~~~~~~~~
110108

@@ -155,15 +153,17 @@ regular PHP code. Compilation is a costly process, so the result is cached in
155153
the directory defined by this configuration option.
156154

157155
Set this option to ``null`` to disable Twig template compilation. However, this
158-
is not recommended (even for the ``dev`` environment).
156+
is not recommended; not even in the ``dev`` environment, because the
157+
``auto_reload`` option ensures that cached templates which have changed get
158+
compiled again.
159159

160160
charset
161161
~~~~~~~
162162

163163
**type**: ``string`` **default**: ``'%kernel.charset%'``
164164

165-
The charset used by the template files. In Symfony Standard edition this defaults
166-
to ``UTF-8`` charset.
165+
The charset used by the template files. In the Symfony Standard edition this
166+
defaults to the ``UTF-8`` charset.
167167

168168
debug
169169
~~~~~
@@ -173,6 +173,8 @@ debug
173173
If ``true``, the compiled templates include a ``__toString()`` method that can
174174
be used to display their nodes.
175175

176+
.. _config-twig-exception-controller:
177+
176178
exception_controller
177179
~~~~~~~~~~~~~~~~~~~~
178180

@@ -275,7 +277,7 @@ for that directory:
275277
276278
<twig:config>
277279
<!-- ... -->
278-
<twig:path namspace="foo_bar">%kernel.root_dir%/../vendor/acme/foo-bar/templates</twig:path>
280+
<twig:path namespace="foo_bar">%kernel.root_dir%/../vendor/acme/foo-bar/templates</twig:path>
279281
</twig:config>
280282
</container>
281283

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.