Re: [htmltmpl] placing .tmpl files in a subdirectory?
Brought to you by:
samtregar
From: Philip S T. <phi...@gm...> - 2002-07-03 04:47:25
|
On Tue, 2 Jul 2002, Douglas Kirkland wrote: > Ok I am curious, Can I do the following. This way I can have the > template name that is assocated with the script and at the same level > as the script directory. All the while not having to modify the > following line. I would like it to be a cut and paste into each > script. > > > my $t = HTML::Template->new(filename => $0.'.tmpl', > path => '../templates'); > why not do this: my $t = new HTML::Template(filehandle => *DATA); then, you just put your template in the source file itself, either after __DATA__ or after __END__ |