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__



-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
No, I will not fix your computer.
http://thinkgeek.com/sf
_______________________________________________
Html-template-users mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/html-template-users

Reply via email to