Mark,
If your cgi is in html/cgi/
and your template in html/templates/
$ENV{'HTML_TEMPLATE_ROOT'} = '../templates';
Below some actual code:
# prepare the template and substitute the values
my $template = HTML::Template->new(path => '../templates',
filename => 'mytemplate.tmpl',
);
then you should do:
Mark Stosberg wrote:
> Martin Nash wrote:
>
>>Hi
>>
>>I can't seem to get HTML::Template to reference items in my HTML
>>directory, they willonly run from the same folder as the .cgi.
>>
>>i have tried $ENV{'HTML_TEMPLATE_ROOT'} = 'path/to/folder';
>>
>>but this seems not to work
>>
>>any ideas?
>>
>
> Did you try making 'path/to/folder' an absolute path?
>
> -mark
>
> . . . . . . . . . . . . . . . . . . . . . . . . . .
> Mark Stosberg Principal Developer
> [EMAIL PROTECTED] Summersault, LLC
> 765-939-9301 ext 223 website development
> . . . . . http://www.summersault.com/ . . . . . . .
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>
--
_____________________________________________________________
Oscar Buijten
Tel: +33.4.67.57.97.45
Fax: +33.4.67.57.97.46
GSM: +33.6.20.84.15.22
Email: [EMAIL PROTECTED]
Web: www.elbie.com
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]