Skip to content


Subversion checkout URL

You can clone with
Download ZIP
Browse files

Documented if-conditional changes.

branch : trunk
  • Loading branch information...
1 parent 547d0b6 commit a0e3ac02a50897d6436029e46662687290babb79 @mitsuhiko committed
Showing with 5 additions and 0 deletions.
  1. +5 −0 docs/templates.rst
5 docs/templates.rst
@@ -952,6 +952,11 @@ variable is defined, otherwise from the default layout template::
The general syntax is ``<do something> if <something is true> else <do
something 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:

0 comments on commit a0e3ac0

Please sign in to comment.
Something went wrong with that request. Please try again.