From: Armin Ronacher Date: Fri, 4 Jul 2008 15:00:38 +0000 (+0200) Subject: Documented if-conditional changes. X-Git-Tag: 2.0~7 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a0e3ac02a50897d6436029e46662687290babb79;p=thirdparty%2Fjinja.git Documented if-conditional changes. --HG-- branch : trunk --- diff --git a/docs/templates.rst b/docs/templates.rst index 9eb547da..e2af7a79 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: