in reply to Using Template toolkit

I'm guessing you are using a Win32 machine based on your error messages. You probably need to change the way you are referencing files to match what Win32 expects (eg reverse the slashes).


Dr. Michael K. Neylon - mneylon-pm@masemware.com || "You've left the lens cap of your mind on again, Pinky" - The Brain

Replies are listed 'Best First'.
Re: Re: Using Template toolkit
by Anonymous Monk on May 11, 2001 at 20:14 UTC
    I thought that shouldn't matter, but I went ahead and reversed them. Now, it says
    file error - \templates\userinfo.html: not found at C:\Inetpub\wwwroot\cgi-bin\userinfo.cgi line 33.
    It doesn't matter if I use an absolute or relative path. I still get the message.I have double checked that the files and folders are there and spelled correctly. Does TT have restrictions on where it will look for files? I even tried specifying the drive letter and I get this weird message
    file error - no providers for template prefix 'C' at C:\Inetpub\wwwroot\cgi-bin\userinfo.cgi line 33.
    The TT at http://www.template-toolkit.org/docs/plain/Tutorial/Tutorial.html doesn't mention any of this stuff. Is there another tutorial somewhere on using this on Win systems? :(

    By the way, thanks for helping.

      I'm not sure as I haven't used TT2 on a Win32 system, however, I do know that TT2 has a good mailing list with archives available near that URL you have above; take a look through there and see if anyone has already addressed using TT2 on Win32. IIRC, TT2 is simplying using the standard perl open and friends to do it's job, so you'd have to stick to how file operations work on Win32.
      Dr. Michael K. Neylon - mneylon-pm@masemware.com || "You've left the lens cap of your mind on again, Pinky" - The Brain