CGI::Widget::Path is a simple HTML navigation path bar builder.
SYNOPSIS
use CGI::Widget::Path;
my $path = new CGI::Widget::Path(
separator => ' > ',
base_url => 'http://www.foo.com',
link => 1,
link_last => 1,
);
$path->addElem( elems => [
{ name => 'One', wrap => [ { tag => 'a', attr => { 'href' => 'url1' } ], append => 1 },
{ name => 'Two', wrap => [ { tag => 'a', attr => { 'href' => 'url2' } ], append => 1 },
] );
print $path->asHTML;
CGI::Widget::Path lets you build a navigation path bar (you know: "You are here: Home > some > page") in order to put it in your HTML pages.
This module is very simple but it can be useful if you create a path component at the top of your application and share it among all sub-pages.
Product's homepage
Requirements:
· Perl