Skip to content

Commit a7ce478

Browse files
committed
[#1786] Tweaks per @wouterj on #2211
1 parent 0eda298 commit a7ce478

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

cookbook/templating/namespaced_paths.rst

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@ format (see :ref:`template-naming-locations`).
1313
Twig also natively offers a feature called "namespaced paths", and support
1414
is built-in automatically for all of your bundles.
1515

16-
1716
Take the following paths as an example:
1817

1918
.. code-block:: jinja
@@ -55,25 +54,23 @@ directory:
5554
.. code-block:: xml
5655
5756
<!-- app/config/config.xml -->
58-
5957
<?xml version="1.0" ?>
6058
<container xmlns="http://symfony.com/schema/dic/services"
6159
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
6260
xmlns:twig="http://symfony.com/schema/dic/twig"
63-
>
61+
>
6462
6563
<twig:config debug="%kernel.debug%" strict-variables="%kernel.debug%">
6664
<twig:path namespace="foo_bar">%kernel.root_dir%/../vendor/acme/foo-bar/templates</twig:path>
6765
</twig:config>
6866
</container>
6967
70-
7168
.. code-block:: php
7269
7370
// app/config/config.php
7471
$container->loadFromExtension('twig', array(
7572
'paths' => array(
76-
'%kernel.root_dir%/../vendor/acme/foo-bar/templates' => 'foo_bar'
73+
'%kernel.root_dir%/../vendor/acme/foo-bar/templates' => 'foo_bar',
7774
);
7875
));
7976

0 commit comments

Comments
 (0)