How can I use a Django template tag for greater than on a forloop.counter?

This Django snippet will give you a smart if tag that you can use with operators such as greater than: djangosnippets.org/snippets/1350.

– MikeN Jul 17 '09 at 15:23 I can't imagine that it would be worse enough to cause any kind of noticeable difference. I'd be incredibly shocked if there was so much as a 1 millisecond difference. – Eli Courtwright Jul 17 '09 at 15:35.

If you only need greater-than, you can use the following easy snippet (put it into app/templatetags/greaterthan. Py): from django import template register = template.Library() @register. Filter def gt(a, b): return a > be And in a template: {% load greterthan %} {% if forloop.

Counter|gt:10 %}...{% endif %}.

I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.

Related Questions