It would be really cool if there were something like this:
http://search.cpan.org/~rubykat/HTML-LinkList-0.07/lib/HTML/LinkList.pm
only that produced TMPL_LOOPish results instead of final HTML, so you
could do funky things like:
my $html_links =3D link_list(current_url=3D>$url,
urls=3D>\@links_in_order,
labels=3D>\%labels,
descriptions=3D>\%desc);
$template->param('navbar', $html_links);
and let the template manage the style and separators and whatnot.
I say this hoping someone else with more time than I have thinks it's
cool too and will do it, because otherwise I will... eventually.=20
Someday.
|