use strict;
use HTML::Template;
my $data = do {local $/; };
my $temp = HTML::Template->new(
scalarref => \$data,
);
$temp->param(
row => [
{ 'link' => 'foo' },
{ 'link' => 'bar' },
{ 'link' => 'baz' },
{ 'link' => 'qux' },
],
);
print $temp->output;
__DATA__