Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

Fixed #14122 -- Added example for builtin yesno template filter. Than…

…ks, idahogray.

git-svn-id: http://code.djangoproject.com/svn/django/trunk@13872 bcc190cf-cafb-0310-a4f2-bffc1f526a37
  • Loading branch information...
commit 2c9f0b75fb05fdc50fdff45b9274d54384cdd983 1 parent 94096e8
Jannis Leidel authored September 26, 2010

Showing 1 changed file with 4 additions and 0 deletions. Show diff stats Hide diff stats

  1. 4  docs/ref/templates/builtins.txt
4  docs/ref/templates/builtins.txt
@@ -2058,6 +2058,10 @@ yesno
2058 2058
 Given a string mapping values for true, false and (optionally) None,
2059 2059
 returns one of those strings according to the value:
2060 2060
 
  2061
+For example::
  2062
+
  2063
+    {{ value|yesno:"yeah,no,maybe" }}
  2064
+
2061 2065
 ==========  ======================  ==================================
2062 2066
 Value       Argument                Outputs
2063 2067
 ==========  ======================  ==================================

0 notes on commit 2c9f0b7

Please sign in to comment.
Something went wrong with that request. Please try again.