Re: [htmltmpl] Alternate loops

2005-12-02 Thread Jonathan Lang
Mathew Robertson wrote: > Hi Jonathan, > > I think the exampe of: > > @loop = ( >... >{value_set => 2, count_distribution => 1, sum_of_counts => 36 }, >... > ) > > is invalid, since you never generate the loop contruct like that. "invalid" may be too strong of a word; maybe you mean

Re: [htmltmpl] Alternate loops

2005-12-02 Thread Mathew Robertson
Hi Jonathan, I think the exampe of: @loop = ( ... {value_set => 2, count_distribution => 1, sum_of_counts => 36 }, ... ) is invalid, since you never generate the loop contruct like that. Usually you would do something like: for ($min..$max) {# - loop through to

[htmltmpl] Alternate loops

2005-12-01 Thread Jonathan Lang
Requiring that all loops be handled by iterating through lists of hashes leads to a lot of extra work on the script writer's end, and results in the template writer having rather inflexible data to work with. I'd like to propose a more flexible alternative, which ought to be usable in addition to