in reply to Path problems using HTML::Template

You seem to be confused about URLs and template paths. A base href tag will alter where your relative links go, but will not affect the include path for HTML::Template in any way. What will affect it is your current working directory, which is different when running /index.cgi than it is when running /cgi-bin/contact.pl. To use the same template from different directories, you either specify a different path or use absolute paths.

Replies are listed 'Best First'.
Re^2: Path problems using HTML::Template
by bradcathey (Prior) on Aug 29, 2005 at 21:56 UTC

    Perfect perrin. I got it.

    Once I realized that <base href> is not related to H::T paths, I was fine. ALSO, I was confused about absolute paths. I re-read the manpage for H::T and it states:

    The file specified can be an absolute path (beginning with a '/' under Unix, for example)

    /usr/www/users/acme/pages/ NOT http://213.34.321.23/pages/

    So, thanks.


    —Brad
    "The important work of moving the world forward does not wait to be done by perfect men." George Eliot