Hello,

       I'm using Apache::Template (with Apache 2 and
mod_perl 2, thanks to Geoffrey Young's modification of
the standard A::T distribution).

       My httpd.conf file contains the following lines:

               PerlLoadModule Apache::Template
               TT2IncludePath /var/www/tt2
               TT2PreProcess  HEADER MACROS
               TT2PostProcess FOOTER

               <Files *.tt2>
                   SetHandler perl-script
                   PerlResponseHandler Apache::Template
               </Files>

And they work fine.  Which is the problem.  I want to
preprocess the HEADER and MACRO files for almost all of
my *.tt2 files -- but not the ones in a few of my
directories.  Is there a way to make an exception for
these directories, perhaps through httpd.conf trickery?
Or -- this is somewhat less appealing -- by adding a line
to my *.tt2 files that overrides the TT2PreProcess
directive?

I thought I should be able to do this by specifying
something like

       <Directory /special_dir>
         TT2PreProcess SPECIAL_HEADER
       </Directory>

or

       <Directory /special_dir>
         AllowOverride
       </Directory>

after the <Files *.tt2> section of httpd.conf.  (In the
latter case, I added an .htaccess file to /special_dir
specifying "TT2PreProcess SPECIAL_HEADER".)
Neither approach worked.

Thank you,
--John


_______________________________________________
templates mailing list
[email protected]
http://lists.template-toolkit.org/mailman/listinfo/templates

Reply via email to