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)
to do this after :
<% foreach table in ('Blog', 'Wiki' ...) %>
<% foreach c in comment({id_table = table}) %>
<% c.date %> <% c.id %>
<% end %>
<% end %>
Thanks
_______________________________________________
templates mailing list
[email protected]
http://mail.template-toolkit.org/mailman/listinfo/templates