Re: problem in patching..

"Mathew Robertson" <[email protected]>
Newsgroups gmane.comp.lang.perl.modules.html-template
Organization RedSheriff
Message-ID <037f01c54c4f$18c8d730$a901000a@mat>
Hi Amit,

I have just cut-n-pasted your code -> it works perfectly.
Without further information, I'm not sure we can help...

regards,
Mathew

----- Original Message ----- 
From: "Amit Marathe" <[email protected]>
To: <[email protected]>
Sent: Thursday, April 28, 2005 8:17 PM
Subject: [htmltmpl] problem in patching..


Hi, 
I hv installed HTML-Template-2.7, further i tried to use it via my
program it is not working correctly.

I tried to see the e.g. program then it also wont show any o/p in the browser. 
I hv checked, the prog is executable with proper headers
My perl code is as given below....

#!/usr/bin/perl -w
use HTML::Template;
use Data::Dumper;
print "Content-type: text/html \n\n";
# open the html template
my $template = HTML::Template->new(filename => 'testTemplate.tmpl');
# fill in some parameters
$template->param(HOME => 'My HOME');
$template->param(PATH => 'My HOME PATH');
#print "Dumper is " . Dumper[$template];
# send the obligatory Content-Type and print the template output
#print "Content-Type: text/html\n\n",
print $template->output;
exit 0;

My template is  'testTemplate.tmpl'  & it is written as follows  :

<html>
<head><title>Test Template</title>
<body>
My Home Directory is <TMPL_VAR NAME=HOME>
<p>
My Path is set to <TMPL_VAR NAME=PATH>
</body>
</html>

############
 What might be the Error ...........
Can u give me some idea.. 

Thanks & Regards 
AmitSM.


-------------------------------------------------------
SF.Net email is sponsored by: Tell us your software development plans!
Take this survey and enter to win a one-year sub to SourceForge.net
Plus IDC's 2005 look-ahead and a copy of this survey
Click here to start!  http://www.idcswdc.com/cgi-bin/survey?id5hix
_______________________________________________
Html-template-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/html-template-users



-------------------------------------------------------
SF.Net email is sponsored by: Tell us your software development plans!
Take this survey and enter to win a one-year sub to SourceForge.net
Plus IDC's 2005 look-ahead and a copy of this survey
Click here to start!  http://www.idcswdc.com/cgi-bin/survey?id5hix
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.