Re: [htmltmpl] problem in patching..
Brought to you by:
samtregar
From: Mathew R. <mat...@re...> - 2005-04-29 00:05:36
|
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 -----=20 From: "Amit Marathe" <am...@gm...> To: <htm...@li...> Sent: Thursday, April 28, 2005 8:17 PM Subject: [htmltmpl] problem in patching.. Hi,=20 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.=20 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 =3D HTML::Template->new(filename =3D> 'testTemplate.tmpl'); # fill in some parameters $template->param(HOME =3D> 'My HOME'); $template->param(PATH =3D> '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=3DHOME> <p> My Path is set to <TMPL_VAR NAME=3DPATH> </body> </html> ############ What might be the Error ........... Can u give me some idea..=20 Thanks & Regards=20 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?id=105hix _______________________________________________ Html-template-users mailing list Htm...@li... https://lists.sourceforge.net/lists/listinfo/html-template-users |