On 12/9/2010 12:24 PM, Cal Leeming [Simplicity Media Ltd] wrote: > Uh, you *might* be able to use: > > {% for x in mylist %} > {% if x % 2 %} > yay: {{x}} > {% else %} > nay: {{x}} > {% endif %} > {% endfor %} > Blerch! This is a really good indication of why it's much better to perform the appropriate translations in the view.
regards Steve > On 09/12/2010 11:18, Phani Chand wrote: >> Can i use filter(lambda x: x%2, mylist) directly in my html page???? -- >> You received this message because you are subscribed to the Google >> Groups "Django users" group. >> To post to this group, send email to django-us...@googlegroups.com. >> To unsubscribe from this group, send email to >> django-users+unsubscr...@googlegroups.com. >> For more options, visit this group at >> http://groups.google.com/group/django-users?hl=en. > > -- > You received this message because you are subscribed to the Google > Groups "Django users" group. > To post to this group, send email to django-us...@googlegroups.com. > To unsubscribe from this group, send email to > django-users+unsubscr...@googlegroups.com. > For more options, visit this group at > http://groups.google.com/group/django-users?hl=en. -- DjangoCon US 2011 Portland, OR: September 6-8 http://djangocon.us/ -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-us...@googlegroups.com. To unsubscribe from this group, send email to django-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/django-users?hl=en.