From a0e3ac02a50897d6436029e46662687290babb79 Mon Sep 17 00:00:00 2001 From: Armin Ronacher Date: Fri, 4 Jul 2008 17:00:38 +0200 Subject: [PATCH] Documented if-conditional changes. --HG-- branch : trunk --- docs/templates.rst | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/docs/templates.rst b/docs/templates.rst index 9eb547d..e2af7a7 100644 --- a/docs/templates.rst +++ b/docs/templates.rst @@ -952,6 +952,11 @@ variable is defined, otherwise from the default layout template:: The general syntax is `` if else ``. +The `else` part is optional. If not provided the else block implicitly +evaluates into an undefined object:: + + {{ '[%s]' % page.title if page.title }} + .. _builtin-filters: -- 2.26.2