From e2a068d49bda16ee79d958ad40eea168168bcc0c Mon Sep 17 00:00:00 2001 From: =?utf8?q?Gr=C3=A9goire=20Pineau?= Date: Wed, 6 Feb 2013 11:10:34 +0100 Subject: [PATCH] [Doc] Updated template_from_string to use include function instead of include tag --- doc/functions/template_from_string.rst | 6 +++--- 1 files changed, 3 insertions(+), 3 deletions(-) diff --git a/doc/functions/template_from_string.rst b/doc/functions/template_from_string.rst index 6df650e..bbb06d8 100644 --- a/doc/functions/template_from_string.rst +++ b/doc/functions/template_from_string.rst @@ -8,8 +8,8 @@ The ``template_from_string`` function loads a template from a string: .. code-block:: jinja - {% include template_from_string("Hello {{ name }}") %} - {% include template_from_string(page.template) %} + {{ include(template_from_string("Hello {{ name }}") }} + {{ include(template_from_string(page.template)) }} .. note:: @@ -23,7 +23,7 @@ The ``template_from_string`` function loads a template from a string: .. note:: Even if you will probably always use the ``template_from_string`` function - with the ``include`` tag, you can use it with any tag or function that + with the ``include`` function, you can use it with any tag or function that takes a template as an argument (like the ``embed`` or ``extends`` tags). Arguments -- 1.7.2.5