#9701: A safelist filter ("safe" for lists)
-----------------------------+----------------------------------------------
 Reporter:  mtredinnick      |       Owner:  mtredinnick
   Status:  new              |   Milestone:             
Component:  Template system  |     Version:  1.0        
 Keywords:                   |       Stage:  Unreviewed 
Has_patch:  0                |  
-----------------------------+----------------------------------------------
 Right now, there's no way for a template designer to indicate that each
 element in a variable that's a list is "safe" for autoescaping purposes.
 Using the safe filter would treat the list as a string. For example, as
 reasonable workaround to #9700 might be to be able to write

 {{{
 {{ some_list|safelist|join:", " }}
 }}}

 Might be worth adding this.

-- 
Ticket URL: <http://code.djangoproject.com/ticket/9701>
Django <http://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.
--~--~---------~--~----~------------~-------~--~----~
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