The django.template.TokenParser has a little problem. I am not sure if this is a problem actually, but it is inconsistent when parsing filters that follow constant strings or variables.
Meaning that: {% tag thevar|filter sometag %} will produce: self.value() = "thevar|filter" self.tag() = "sometag" However: {% tag "a value"|filter sometag %} will produce: self.value() = "a value" self.tag() = "|filter" self.tag() = "sometag" This does not seem like correct behaviour... I made a very simple patch for this, thus the outcome of the above: {% tag "a value"|filter sometag %} will produce: value = "a value"|filter tag = sometag So now we can simply pass the "value" into a FilterExpression to parse the filters... Am I on the wrong track here? --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Django developers" group. To post to this group, send email to django-developers@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-developers?hl=en -~----------~----~----~----~------~----~------~--~---