Links::Build::build_cool is used to generate the tags that's used in cool.html. You probably won't need all the code that's in there, so just copy out what you need and put it into a global. I would make it just return a loop of links (ie. what link_results_loop is), and then you can just loop through it in the template.
So in the template, it'd be something like:
Code:
<%my_cool_global(5)%>
<%loop cool_links%>
<%-- do stuff with links --%>
<%endloop%>
where 5 could be how many cool links you wanted.
And the global would be something like:
Code:
my $count = shift;
# build_cool code
return { cool_links => \@cool_links_loop };
Adrian