[Templates] Please, please pardon me for the total noob question, but...

Ty Sayman ty.sayman@googlemail.com
Wed, 6 Jun 2007 10:20:43 +0200


------=_Part_22237_7001405.1181118043369
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

I cannot get the CGI example in the 2.19 tutorial to run without a '
userinfo.html not found' error.

After getting tpage and ttree to work on static pages, getting DBI to work,
and being fantastically happy about finding the Template Toolkit, I hit the
wall with the CGI example.

My computer is running a fully-up-to-date OSX setup.
- Perl works.
- Apache is running.
- Basic CGI programs work. (in the /Library/Webserver/CGI-Executable and
/Users/me/Sites/cgi-local directories)

When I run the cgi_from_tutorial.pl file from the command line, it prints
the html output as expected.
When I run the cgi_from_tutorial.pl file from the browser, I get the 'file
not found  -  'userinfo.html' not found at wtf.pl line xx

Where should the 'userinfo.html' file be stored?  (in the INCLUDE_PATH
(where it is), or somewhere else)

I know this post is short on detail, but I figured the answer would be
simple and wouldn't require copies of config  *.pl  *.html and everything
else.

Blast away...gently

Ty

------=_Part_22237_7001405.1181118043369
Content-Type: text/html; charset=ISO-8859-1
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

I cannot get the CGI example in the 2.19 tutorial to run without a &#39;userinfo.html not found&#39; error.<br><br>After getting tpage and ttree to work on static pages, getting DBI to work, and being fantastically happy about finding the Template Toolkit, I hit the wall with the CGI example.
<br><br>My computer is running a fully-up-to-date OSX setup. <br>- Perl works. <br>- Apache is running.<br>- Basic CGI programs work. (in the /Library/Webserver/CGI-Executable and /Users/me/Sites/cgi-local directories) <br>
<br>When I run the cgi_from_tutorial.pl file from the command line, it prints the html output as expected.<br>When I run the cgi_from_tutorial.pl file from the browser, I get the &#39;file not found&nbsp; -&nbsp; &#39;userinfo.html
&#39; not found at wtf.pl line xx<br><br>Where should the &#39;userinfo.html&#39; file be stored?&nbsp; (in the INCLUDE_PATH (where it is), or somewhere else)<br><br>I know this post is short on detail, but I figured the answer would be simple and wouldn&#39;t require copies of config&nbsp; *.pl&nbsp; *.html and everything else.
<br><br>Blast away...gently<br><br>Ty

------=_Part_22237_7001405.1181118043369--