Re: [htmltmpl] placing .tmpl files in a subdirectory?
Brought to you by:
samtregar
From: Sam T. <sa...@tr...> - 2002-07-02 19:51:49
|
On Tue, 2 Jul 2002, Will wrote: > Does anyone here place their .tmpl files in a special > directory assigned just for templates, like maybe: > > /cgi-bin/templates > > I was thinking of doing this for organizational > purposes, but I wasn't sure of what problems I might > run into, or what path I would have to use in the CGI > programs, etc... Yes. If you do that, just use the path option to specify the path to the templates: my $t = HTML::Template->new(filename => 'foo.tmpl', path => 'templates'); -sam |