On Fri, 5 May 2000, Matt Sergeant wrote:

> Answering myself: It works.
> 
> Damn this product (mod_perl) is cool!
> 
> On Fri, 5 May 2000, Matt Sergeant wrote:
> 
> > I have someone on the AxKit list asking if there's a way to do
> > configuration outside of .htaccess files. I figure rather than writing
> > some new code to do this, <Perl> sections could be used.
> > 
> > Will this work with custom directives, so basically could I do:
> > 
> > <Perl>
> > @AxAddStyleMap = (
> >     [ 'text/xsl' => 'Apache::AxKit::Language::XSLT' ],
> >     ...
> > );
> > </Perl>

Even a cleaner solution, especially if you distribute some sample
configuration files, would be to write this Perl file and load it with
PerlModule

AxConfig.pm:
------------
package Apache::ReadConfig;

@AxAddStyleMap = (
    [ 'text/xsl' => 'Apache::AxKit::Language::XSLT' ],
    ...
);

1;

> > 
> > I don't see why not, and I haven't tested it, but I just thought I'd
> > double check here first.
> > 
> > 
> 
> -- 
> <Matt/>
> 
> Fastnet Software Ltd. High Performance Web Specialists
> Providing mod_perl, XML, Sybase and Oracle solutions
> Email for training and consultancy availability.
> http://sergeant.org http://xml.sergeant.org
> 
> 



______________________________________________________________________
Stas Bekman             | JAm_pH    --    Just Another mod_perl Hacker
http://stason.org/      | mod_perl Guide  http://perl.apache.org/guide 
mailto:[EMAIL PROTECTED]  | http://perl.org    http://stason.org/TULARC/
http://singlesheaven.com| http://perlmonth.com http://sourcegarden.org
----------------------------------------------------------------------

Reply via email to