summaryrefslogtreecommitdiff
path: root/docs
diff options
context:
space:
mode:
Diffstat (limited to 'docs')
-rw-r--r--docs/templates.txt5
1 files changed, 5 insertions, 0 deletions
diff --git a/docs/templates.txt b/docs/templates.txt
index eab4b129ce..5d5f657747 100644
--- a/docs/templates.txt
+++ b/docs/templates.txt
@@ -476,6 +476,11 @@ This is equivalent to::
{{ var3 }}
{% endif %}{% endif %}{% endif %}
+You can also use a literal string as a fallback value in case all
+passed variables are False::
+
+ {% firstof var1 var2 var3 "fallback value" %}
+
for
~~~