Hello All,

I just started playing with HTML::Template and ran across something
odd. I hope someone on the list has encountered something similar.

I wrote a simple HTML template to test the module:

##test.tmpl##
<html>
<head>
<title>test template</title>
<script src="../../general/scripts/scripts.js"
type="text/javascript"></script>
<link rel="stylesheet" href="../../general/scripts/style.css"
type="text/css">
</head>
<body>
<div class="howto-attention">HTML::Template = <TMPL_VAR
NAME="description"></div>
</body>
</html>

And an accompanying CGI program:

##test.cgi##
#!/usr/local/bin/perl

use CGI qw(:standard);
use HTML::Template;
use strict;
my $doc = "test.tmpl";

print header;

# HTML::Template
my $T = HTML::Template->new(filename => "$doc");
$T->param(description => "Testing template speed");
print $T->output;

Here is the problem. This CGI takes a really long time (about 3.5 seconds) to load. My client is: Mozilla 1.2.1 on 1.8GHz Pentium 4 on Mandrake Linux 8.2. The server is a Sun Solaris server running Apache 1.3.27 with HTML::Template 2.6. The odd thing is that if I remove the references to the external Javascript or Cascading Style Sheet file from the HTML template, the CGI runs fast; with the external files, really slow. Is there anything I'm doing wrong, or has anyone else experienced this?

Thanks for the help.

Howard



-------------------------------------------------------
This SF.NET email is sponsored by: Thawte.com - A 128-bit supercerts will
allow you to extend the highest allowed 128 bit encryption to all your clients even if they use browsers that are limited to 40 bit encryption. Get a guide here:http://ads.sourceforge.net/cgi-bin/redirect.pl?thaw0030en
_______________________________________________
Html-template-users mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/html-template-users

Reply via email to