[EMAIL PROTECTED] wrote: > I've been using Django for a project, and one thing I have sorely > missed is having an ifless and ifgreater template tag. Other internal > projects have had similar problems, and made at best hacks to work > around this missing feature. I understand however that there is some > hesitance to add more tags to the templating system though in an effort > to separate display and logic.
I think sooner or later you will find all kinds of cases where the standard tags are not sufficient enough. In FFSomething, I generate a DOT file out of a network dump of the topology and have to calculate the color of the lines depending on the link quality. This is surly a layout not a view code thing. For such cases i just use the expr tag ( http://code.djangoproject.com/wiki/ExprTag ) because it's simply so flexible for such rare cases where the if and ifequal tags are not sufficient enough. I don't think ifgreater and ifless are really used that much that it should result in a additional default tag, maybe the if tag should simply be more flexible then it is now. i'm -0 on this. kindly regards Daniel --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Django developers" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/django-developers -~----------~----~----~----~------~----~------~--~---
