Author: jacob
Date: 2007-06-07 13:18:44 -0500 (Thu, 07 Jun 2007)
New Revision: 5436

Modified:
   django/trunk/docs/templates.txt
Log:
Fixed #4000 - changed documentation to note that filter arguments no longer 
need to be quoted (and added a test to that effect). Thanks, SmileyChris.

Modified: django/trunk/docs/templates.txt
===================================================================
--- django/trunk/docs/templates.txt     2007-06-07 18:12:12 UTC (rev 5435)
+++ django/trunk/docs/templates.txt     2007-06-07 18:18:44 UTC (rev 5436)
@@ -91,10 +91,13 @@
 ``{{ text|escape|linebreaks }}`` is a common idiom for escaping text contents,
 then converting line breaks to ``<p>`` tags.
 
-Some filters take arguments. A filter argument looks like this:
-``{{ bio|truncatewords:"30" }}``. This will display the first 30 words of the
-``bio`` variable. Filter arguments always are in double quotes.
+Some filters take arguments. A filter argument looks like this: ``{{
+bio|truncatewords:30 }}``. This will display the first 30 words of the ``bio``
+variable.
 
+Filter arguments that contain spaces must be quoted; for example, to join a 
list
+with commas and spaced you'd use ``{{ list|join:", " }}``.
+
 The `Built-in filter reference`_ below describes all the built-in filters.
 
 Tags


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Django updates" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-updates?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to