Yes, you can use the template global feature for this matter like:
sub {
my $results = $DB->table('table_name')->select()->fetchall_hashref;
return { loop_interface => $results }
}
And then it can be called in your html code:
<%template_global_name%>
<%loop loop_interface%>
<%field1%>
<%field2%>
.....
<%endloop%>
TheStone.
B.
sub {
my $results = $DB->table('table_name')->select()->fetchall_hashref;
return { loop_interface => $results }
}
And then it can be called in your html code:
<%template_global_name%>
<%loop loop_interface%>
<%field1%>
<%field2%>
.....
<%endloop%>
TheStone.
B.