summaryrefslogtreecommitdiff
path: root/doc/reference
diff options
context:
space:
mode:
Diffstat (limited to 'doc/reference')
-rw-r--r--doc/reference/qweb.rst10
1 files changed, 10 insertions, 0 deletions
diff --git a/doc/reference/qweb.rst b/doc/reference/qweb.rst
index 1fa29212998..e73de74b94d 100644
--- a/doc/reference/qweb.rst
+++ b/doc/reference/qweb.rst
@@ -95,6 +95,16 @@ not have to be ``<t>``::
will give the same results as the previous example.
+Extra conditional branching directives ``t-elif`` and ``t-else`` are also
+available::
+
+ <div>
+ <p t-if="user.birthday == today()">Happy bithday!</p>
+ <p t-elif="user.login == 'root'">Welcome master!</p>
+ <p t-else="">Welcome!</p>
+ </div>
+
+
.. _reference/qweb/loops:
loops