Re: Django Template Compilation rev.2

2011-03-30 Thread akaariai
On Mar 30, 6:18 am, xtrqt wrote: >     def templ(context, divisibleby=divisibleby): >         my_list = context.get("my_list") >         _loop_len = len(my_list) >         result = [] >         for forloop, i in enumerate(my_list): >             forloop = { >                 "counter0": forloop,

Re: Django Template Compilation rev.2

2011-03-30 Thread Jonathan Slenders
> Alex Gaynor wrote: > >     ... The >     semantics of Python code is that variables assigned in a for loop >     exist beyond the loop itself, including the looping variable. Django >     templates, however, pop the top layer from the context stack at the >     end of a for loop. This intermedia

[GSoC] Django Template Compilation rev.2

2011-03-30 Thread xtrqt
Django Template Compilation rev.2 = About Me I'm student of last year of Technical University of Lodz, Poland on faculty of electronic engineering and computer science, while now in parallel I'm doing my second diplom of electronic engineering o