Re: new feature idea: even and odd forloop iteration variables

2011-09-24 Thread Luke Plant
Hi skazhy, > I've been working with Django for a while now, but today I decided to > make a first contribution to Django that would make templates less > ugly by adding these two values to loop_dict (in django/template/ > defaulttags.py): > > loop_dict['even'] = (i %2 == 0) > loop_dict['odd'] =

Re: new feature idea: even and odd forloop iteration variables

2011-09-22 Thread Russell Keith-Magee
On Tue, Sep 20, 2011 at 2:57 AM, Travis Swicegood wrote: > Hey Karlis; > This is a cool idea.  I don't do enough template work to always remember the > cycle syntax, but an odd/even is pretty simple to remember. I disagree, for a number of reasons * There should be Only

Re: new feature idea: even and odd forloop iteration variables

2011-09-19 Thread Travis Swicegood
Hey Karlis; This is a cool idea. I don't do enough template work to always remember the cycle syntax, but an odd/even is pretty simple to remember. As for getting this into Django, check out the Contributing Docs[1]. It has everything you need on how to help out. In particular the Requesting

Re: new feature idea: even and odd forloop iteration variables

2011-09-19 Thread Jonas H.
On 09/19/2011 12:58 PM, skazhy wrote: Hi all! I've been working with Django for a while now, but today I decided to make a first contribution to Django that would make templates less ugly by adding these two values to loop_dict (in django/template/ defaulttags.py): loop_dict['even'] = (i %2 ==

new feature idea: even and odd forloop iteration variables

2011-09-19 Thread skazhy
Hi all! I've been working with Django for a while now, but today I decided to make a first contribution to Django that would make templates less ugly by adding these two values to loop_dict (in django/template/ defaulttags.py): loop_dict['even'] = (i %2 == 0) loop_dict['odd'] = (i %2 != 0)