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'] = (
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 One Way To Do It
* Cyc
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 N
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 ==
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)
Using