[htmltmpl] Running into problems IIS 5.0 (Win2K) and H:T:Expr
Brought to you by:
samtregar
From: Jeff P. <jp...@gr...> - 2003-01-21 20:44:35
|
Howdy! I just moved up to IIS 5.0 on a Win2K machine and I am having problems running using H:T:Expr. I am currently running H:T v2.6 and H:T:E v.04. The code is the same except for adding "::Expr" then the code gives a "Cannot find server or DNS Error" message. I don't even use any of Expr's functionality in the template and it still gives the error. Here's the code: use strict; use HTML::Template::Expr; my $tmpl = new HTML::Template::Expr( filename => 'env.tmpl', cache => 1, path => [ 'C:/INETPUB/WWWROOT/CGI-BIN' ], die_on_bad_params => 0 ); my @env; foreach (sort keys %ENV ) { push @env, { var_name => $_, var_value => $ENV{$_} }; } $tmpl->param( ENV => \@env ); print "Content-type: text/html\n\n", $tmpl->output; Here's the template snippet: <HTML> <HEAD> <TITLE>Host's Environment</TITLE> <META NAME="GENERATOR" Content="Microsoft Visual Studio"> <META HTTP-EQUIV="Content-Type" content="text/html; charset=UTF-8"> </HEAD> <BODY BGCOLOR="CYAN"> <H2>HOST Environment</H2> <P> <HR> <TABLE border=1> <tr> <th> ENV_NAME </th> <th> ENV_VALUE </th> </tr> <TMPL_LOOP NAME="ENV"> <tr> <td> <b><TMPL_VAR NAME="var_name"></B> </td> <td> <TMPL_VAR NAME="var_value"> </td> </tr> </tmpl_loop> </table> </BODY> </HTML> Does anyone have any ideas on how to resolve this? I am using ActiveState perl 5.6.1. build 633, if that helps. |