From 75bc5bc634e90d5ccd2d7fc324df878dc5d4ce5d Mon Sep 17 00:00:00 2001 From: Craig Oldford Date: Mon, 13 Apr 2015 12:27:30 -0300 Subject: Fixed #12199 -- Added the ability to use "as" with the firstof template tag. --- docs/ref/templates/builtins.txt | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'docs/ref') diff --git a/docs/ref/templates/builtins.txt b/docs/ref/templates/builtins.txt index af0da83354..f51e70dcac 100644 --- a/docs/ref/templates/builtins.txt +++ b/docs/ref/templates/builtins.txt @@ -285,6 +285,13 @@ Or if only some variables should be escaped, you can use:: {% firstof var1 var2|safe var3 "fallback value"|safe %} +You can use the syntax ``{% firstof var1 var2 var3 as value %}`` to store the +output inside a variable. + +.. versionadded:: 1.9 + + The "as" syntax was added. + .. templatetag:: for for -- cgit v1.3