Re: explicit array access in django templates

2006-09-28 Thread falcon
Don, First of all I have to admit that I was testing with jinja templates, which are supposed to be based on django (i wanted to run into just these kinds of limits before setting up django). Unfortunately I don't know hwo many columns my table will have, I want a generic solution which requires

Re: explicit array access in django templates

2006-09-28 Thread Don Arbow
On Sep 28, 2006, at 7:08 AM, falcon wrote: > > Let's say I have two arrays: > data=[["a",1,9],["b",2,8],["c",3,7],["d",4,6],["e",5,5]] > type=['string','number','number] > > I iterate through the 'data' array (either with 'for' or 'range' > loops) > and render a with values from the array. > ..

explicit array access in django templates

2006-09-28 Thread falcon
Let's say I have two arrays: data=[["a",1,9],["b",2,8],["c",3,7],["d",4,6],["e",5,5]] type=['string','number','number] I iterate through the 'data' array (either with 'for' or 'range' loops) and render a with values from the array. ... range rownumber from 0 to sizeOfData ... range columnnumber