use strict;
use HTML::Template;
my $data = do {local $/; };
my $template = HTML::Template->new(
scalarref => \$data,
);
my $returnArray = [
{
node_date => 'some date',
node_author => 'some author',
DisplayContent => 'DisplayContent',
node_title => 'some title',
node_content => 'some content',
action_name => 'some_action',
select_name => 'Type',
options => [
{opt => 'Audit'},
{opt => 'New'},
{opt => 'Update'},
],
},
{
node_date => 'some other date',
node_author => 'some other author',
DisplayContent => 'DisplayContent',
node_title => 'some other title',
node_content => 'some other content',
action_name => 'some_other_action',
select_name => 'Type',
options => [
{opt => 'Audit'},
{opt => 'New'},
{opt => 'Update'},
],
},
];
$template->param(
NEWBODY => $returnArray
);
print $template->output;
__DATA__
Date:
STRONG>By: