Permalink
Browse files

Documented if-conditional changes.

--HG--
branch : trunk
  • Loading branch information...
1 parent 547d0b6 commit a0e3ac02a50897d6436029e46662687290babb79 @mitsuhiko mitsuhiko committed Jul 4, 2008
Showing with 5 additions and 0 deletions.
  1. +5 −0 docs/templates.rst
View
@@ -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.