Uh, you *might* be able to use:
{% for x in mylist %}
{% if x % 2 %}
yay: {{x}}
{% else %}
nay: {{x}}
{% endif %}
{% endfor %}
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.