From 75f60f69416625713819c810d2da33db4dc0b06c Mon Sep 17 00:00:00 2001 From: Fabien Meghazi Date: Wed, 7 Sep 2016 16:01:16 +0200 Subject: [ADD] web: Add extra condition branching (t-elif, t-else) A new preprocess method is added to the template engine in order to do preprocessing/sanitization of the templates before compilation. This method can be overloaded in order to add new features such as translation, ... --- doc/reference/qweb.rst | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'doc/reference') 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 ````:: will give the same results as the previous example. +Extra conditional branching directives ``t-elif`` and ``t-else`` are also +available:: + +
+

Happy bithday!

+

Welcome master!

+

Welcome!

+
+ + .. _reference/qweb/loops: loops -- cgit v1.2.3