From e4903e052bcfcfde9e76334ef34a62807c4f4976 Mon Sep 17 00:00:00 2001 From: Fabien Potencier Date: Thu, 25 Mar 2010 12:03:27 +0100 Subject: [PATCH] fixed doc --- doc/02-Twig-for-Template-Designers.markdown | 3 ++- doc/06-Recipes.markdown | 2 ++ 2 files changed, 4 insertions(+), 1 deletions(-) diff --git a/doc/02-Twig-for-Template-Designers.markdown b/doc/02-Twig-for-Template-Designers.markdown index 3a907bc..00becdc 100644 --- a/doc/02-Twig-for-Template-Designers.markdown +++ b/doc/02-Twig-for-Template-Designers.markdown @@ -592,7 +592,8 @@ the `set` tag and can have multiple targets: {% set foo, bar as 'foo', 'bar' %} -The `set` tag can also be used to 'capture' chunks of HTML: +The `set` tag can also be used to 'capture' chunks of HTML (new in Twig +0.9.6): [twig] {% set foo %} diff --git a/doc/06-Recipes.markdown b/doc/06-Recipes.markdown index 20ec0c9..c1207db 100644 --- a/doc/06-Recipes.markdown +++ b/doc/06-Recipes.markdown @@ -215,6 +215,8 @@ accessible via the `loop.parent.loop.index` variable. Passing a Macro as an Argument ------------------------------ +(new in Twig 0.9.6) + By default, a macro directly outputs its content to the screen. If you want to pass the content of a macro as an argument to a method or to another macro, you can use the `set` tag: -- 1.7.2.5