[Templates] Two issues - Processing problem and caching problem (bug?)
Evan Kaufman
evan.kaufman@gmail.com
Wed, 12 Jul 2006 14:39:22 -0500
Josh Rosenbaum wrote:
> > $TT->process($request->filename(), \%data, $request ) || do
> > {
> > $request->log_reason( $TT->error() );
> > return SERVER_ERROR;
> > };
>
> Maybe try storing to a scalar ref and printing to manually?
I've tried that, and it still comes out mangled. Anything else I
print comes out fine, though:
my $tt_out = '';
$TT->process($request->filename(), \%data, \$tt_out ) || do
{
$request->log_reason( $TT->error() );
return SERVER_ERROR;
};
print $tt_out,"\n\n",$request->filename,"\n";
This prints:
HTTP/1.1 200 OK
Date: Wed, 12 Jul 2006 12:55:23 GMT
Server: Apache
Connection: close
Content-Type: text/html; charset=ISO-8859-1
<hml><bdy>Ti13</bdy></hml>
/home/test/public_html/test.phtml
So, the template content comes out strangely, but a directly printed
string comes out just as intended, so it can't be apache or
mod_perl...And I'm creating the template on the local (linux)
filesystem, so there couldnt be an issue of different newlines. I'm
sincerely stumped.
I really appreciate you all trying to help me, by the way.