Re: Type casting template filter proposal

2011-10-03 Thread Florian Apolloner
Hi, personally I am -1 on that, for the following reasons: - This can be done in an external library - You can't support every possibility, you want a string/int filter, I want a blableblub/younameit type conversion - playing with request.GET.* in templates is probably something you

Type casting template filter proposal

2011-10-03 Thread h3
There's numerous time where I found myself wishing for type casting filters in templates.. For example, the following won't work because one is a string and the other is an integer: {% if request.GET.year == object.date.year %} ... {% endif %} So when I need to compare a string with an int with