* "Anish Kumar K." <[EMAIL PROTECTED]> [2005-01-05T05:52:16]
> I use a perl template and getting this error
> 
> my $templateFile="\home\anish\temp\client.html";
> $template->process($templateFile, \%inputVariables) || die "Template process 
> failed: ", $template->error(), "\
> n";
> 
> absolute paths are not allowed (set ABSOLUTE option)
> 
> Please help me

I think the error message is being pretty darn helpful on its own.

First of all, are you sure you don't mean
"/home/anish/temp/client.html"?

Template Toolkit is complaining that you shouldn't use absolute paths --
that is, filenames that start at the root directory.  It wants relative
paths -- filenames that start "here" like this: "temp/client.html"

TT2 would then look through all the TEMPLATE_PATH directories for that
template.  If you want absolute paths to be allowed, set the ABSOLUTE
option.

$template = Template->new( ... ABSOLUTE => 1 ... )

Consult the Template manual.

-- 
rjbs

Attachment: pgpnjsliTz9UL.pgp
Description: PGP signature

Reply via email to