Re: html templates - 'for' cycle without a variable

2008-07-06 Thread Milan Andric
On Thu, Jul 3, 2008 at 10:21 AM, antony_h <[EMAIL PROTECTED]> wrote: > > How could I repeat my 20 times? > I've found how I can repeat it 5 times: > {% for a in 12345|make_list %} > > {% endfor %} > But it's not so great for e.g. a hundred > Usage: my designer wants to test his layout and I don'

Re: html templates - 'for' cycle without a variable

2008-07-06 Thread Oscar Carlsson
If you only need to repeat a div-tag 20 times, and don't need any data from any model, you could always do it with javascript. Oscar On Fri, Jul 4, 2008 at 6:07 PM, [EMAIL PROTECTED] < [EMAIL PROTECTED]> wrote: > > Create a 20-elemnt list inside your view and set it as a context > variable? > >

Re: html templates - 'for' cycle without a variable

2008-07-04 Thread [EMAIL PROTECTED]
Create a 20-elemnt list inside your view and set it as a context variable? On Jul 3, 10:21 am, antony_h <[EMAIL PROTECTED]> wrote: > How could I repeat my 20 times? > I've found how I can repeat it 5 times: > {% for a in 12345|make_list %} > > {% endfor %} > But it's not so great for e.g. a hun

html templates - for-cycle without a variable

2008-07-03 Thread antony_h
How could I repeat my 20 times? I've found how I can repeat it 5 times: {% for a in 12345|make_list %} {% endfor %} But it's not so great for e.g. a hundred Usage: my designer wants to test his layout and I don't want to create a custom tag for such a simple task --~--~-~--~~---

html templates - for cycle without a variable

2008-07-03 Thread antony_h
How could I repeat my 20 times? I've found how I can repeat it 5 times: {% for a in 12345|make_list %} {% endfor %} But it's not so great for e.g. a hundred Usage: my designer wants to test his layout and I don't want to create a custom tag for such a simple task --~--~-~--~~---

html templates - 'for' cycle without a variable

2008-07-03 Thread antony_h
How could I repeat my 20 times? I've found how I can repeat it 5 times: {% for a in 12345|make_list %} {% endfor %} But it's not so great for e.g. a hundred Usage: my designer wants to test his layout and I don't want to create a custom tag for such a simple task --~--~-~--~~---