in reply to HTML::Template: group <tmpl_var>s

You might want to take a look at HTML::Template::Plugin::Dot which lets you access complex structures with Template-Toolkit-like syntax. Then you can just pass an array or hash to your template and access it without looping.