On Wed, 14 Nov 2001, Chuck Adams wrote:
> > So why the superfluous instructions in the man page and in the
> > tutorial? I'll be happy to make a patch to change them, if needed ...
>
> Because TT2 is designed to run under a lot of environments, not just
> mod_perl.
Yes, but the text in question was under the mod_perl section ...
I've attached diffs for Template/Tutorial/Web.pod and
Template/Manual/Config.pod with the changes that I believe need to be made
...
Hope this helps,
- nick
548c548,553
<
---
>
> my $template = Template->new({
> INCLUDE_PATH => "$websrc/src/user:$websrc/lib",
> PRE_PROCESS => 'config',
> }
>
556,561d560
< my $template = Template->new({
< INCLUDE_PATH => "$websrc/src/user:$websrc/lib",
< PRE_PROCESS => 'config',
< OUTPUT => $r, # direct output to Apache request
< });
<
855c855,858
< is passed as the argument to Apache/mod_perl handlers.
---
> is passed as the argument to Apache/mod_perl handlers (although under
> mod_perl Perl's STDOUT is overridden to direct output to the request
> object by default, so if you are running under mod_perl it is not
> necessary to set this).
886,896d888
<
< example 5 (Apache/mod_perl handler):
<
< sub handler {
< my $r = shift;
<
< my $t = Template->new({
< OUTPUT => $r,
< });
< ...
< }