From f2aad6733600ab1a48e4564ab48307afafea4cf8 Mon Sep 17 00:00:00 2001 From: Michael Hirschler Date: Thu, 19 Jun 2014 15:27:12 +0200 Subject: [PATCH 1/2] fixed small php syntax error --- cookbook/templating/namespaced_paths.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cookbook/templating/namespaced_paths.rst b/cookbook/templating/namespaced_paths.rst index f26ba8a3237..043d23c0bb3 100644 --- a/cookbook/templating/namespaced_paths.rst +++ b/cookbook/templating/namespaced_paths.rst @@ -124,7 +124,7 @@ specific template doesn't exist. '%kernel.root_dir%/../vendor/acme/themes/theme1' => 'theme', '%kernel.root_dir%/../vendor/acme/themes/theme2' => 'theme', '%kernel.root_dir%/../vendor/acme/themes/common' => 'theme', - ); + ), )); Now, you can use the same ``@theme`` namespace to refer to any template located From 68a8ab1923fa4f9e4ab889a72db2b14f779c5ea3 Mon Sep 17 00:00:00 2001 From: Michael Hirschler Date: Thu, 19 Jun 2014 15:27:52 +0200 Subject: [PATCH 2/2] added block macro --- cookbook/templating/namespaced_paths.rst | 2 ++ 1 file changed, 2 insertions(+) diff --git a/cookbook/templating/namespaced_paths.rst b/cookbook/templating/namespaced_paths.rst index 043d23c0bb3..5835206c77d 100644 --- a/cookbook/templating/namespaced_paths.rst +++ b/cookbook/templating/namespaced_paths.rst @@ -91,6 +91,8 @@ the first template that exists, starting from the first configured path. This feature can be used as a fallback mechanism to load generic templates when the specific template doesn't exist. +.. configuration-block:: + .. code-block:: yaml # app/config/config.yml