On Thursday 02 February 2006 09:53, oggie rob wrote:

> I don't think this is inconsistent. You normally put filters within
> variables. I don't think you can put it within tags:

Yes you can:

>>> import django.template
>>> django.template.Template('{% if var1|length_is:"0" %}You can use \
... filters in if{% endif %}').render({'var1':''})
'You can use filters in if'

(Well, at least in magic-removal you can).

Luke

-- 
"In my opinion, we don't devote nearly enough scientific research to 
finding a cure for jerks." (Calvin and Hobbes)

Luke Plant || L.Plant.98 (at) cantab.net || http://lukeplant.me.uk/

Reply via email to