RE: [htmltmpl] placing .tmpl files in a subdirectory?
Brought to you by:
samtregar
From: Kenny S. <ke...@jo...> - 2002-07-02 19:57:28
|
Hi Will, Yes, I put all of my templates in a subdirectory. You can set $ENV{'HTML_TEMPLATE_ROOT'} to the name of the subdirectory, and then just do $template = HTML::Template->new( filename => 'filename.tmpl' ) ; and H::T will look for $ENV{'HTML_TEMPLATE_ROOT'}/filename.tmpl Hope this helps, Kenny Smith JournalScape.com > Greets Folks, > > 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... > > Any advice appreciated. > > Thanks, > > Will |