HTML::ActiveLink module dynamically activate HTML links based on URL.
SYNOPSIS
use HTML::ActiveLink;
my $al = new HTML::ActiveLink;
print $al->activelink(@html_doc);
I don't know about you, but one of the main problems I have with HTML content is getting images and links to "turn on" depending on the current URL location. That is, I like authoring one set of templates, something like this:
[ < a href="/" >Home< /a > | < a href="/faq/" >FAQ< /a >
| < a href="/about/" >About Us< /a > ]
And then having the appropriate link turned on, so that if I'm running inside the /home/ directory, the above turns into this:
[ < font color="red" >Home< /font > | < a href="/faq/" >FAQ< /a >
| < a href="/about/" >About Us< /a > ]
Without having to write a whole bunch of if's, or writing a bunch of different sets of templates, etc.
This module handles the above process automatically. By default, it will activate any text or images with < a href > tags around them by stripping the link off and changing the appearance of text and names of images. All transformations are fully customizable, allowing you to choose how your active text should look. HTML::ActiveLink can even automatically construct imagemaps depending on your location.
In the simplest case, all you have to do is create a new object by a call to new(), and then call the main activelink() function which takes care of the transformation. To customize what the output HTML looks like, keep reading...
Product's homepage
Requirements:
· Perl