NAME
WE_Frontend::LinkChecker - check a site for broken links
SYNOPSIS
use WE_Frontend::LinkChecker;
my $lc = WE_Frontend::LinkChecker->new(-url => "http://www/",
-restrict => [...]);
my $errors = $lc->check_html;
print $errors;
DESCRIPTION
- new(-url => $url, -restrict => $restrict_array)
-
Construct a new
WE_Frontend::LinkChecker
object. The default start URL is$url
, the restrictions are specified by-restrict
. - check_html
-
Start the linkcheck process and return the results as a HTML string.
- check_html_header
-
Return the HTML header. This method is used by
check_html
by default. - check_tt($template_object, $template_file, $extra_args)
-
Start the linkcheck process and create the output string with the help of Template-Toolkit. The
Template
object is set in$template_object
.$template_file
holds theTemplate
file. Extra arguments for theprocess
method ofTemplate
as a hash reference may also be supplied. - check
-
Start the linkcheck process and return the list of failed_urls as a hash.
AUTHOR
Slaven Rezic - slaven@rezic.de