I think I might be missing something, but I have a problem with
date filter. Why doesn't this template code work?

{% ifequal d|date:"l" "Sunday" %}
        <td class="sunday">
{% else %}
        <td>
{% endifequal %}

<ul><li>{{ d|date:"l" }}</li></ul>

But inside the HTML list item {{ d|date:"l" }} produces full weekday
names. Can and should this evaluation be done in such a way, or perhaps
there's a better way or no way this can be done using Django templates?

Thanks for any help in solving this. 
Patrick Anderson


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

Reply via email to