[Templates] Iterate over keys value

2015-02-04 Thread thorshand
Hi, Is it possible to iterate over a key value, like : % foreach c in comment({id_table = 'Blog'}) %    % c.date % % c.id % % end % comment is a resulset of dbix search with columns : id, id_table, name, date, ... I would like to make one dbi request (don't include where clause in resultset)

Re: [Templates] Iterate over keys value

2015-02-04 Thread Gert van Oss
Maybe something like this gets you there..? [% FOREACH country IN all_content.keys.sort %] h3[% country %]/h3 [% FOREACH line IN all_content.$country %] [% line.name %]br / [% line.street %]br / [% line.city %]br / [% END %] [% END %] On