On Wed, 3 May 2000, Doug MacEachern wrote:

> On Mon, 1 May 2000, Matt Sergeant wrote:
> 
> > It would be nice, in my opinion, to have some way of doing:
> > 
> > PerlAddVar Fred "Value 1"
> > PerlAddVar Fred "Value 2"
> > 
> > And then in your script:
> > 
> > my @values = $r->dir_config('Fred');
> > 
> > which gets ("Value 1","Value 2") in @values.
> > 
> > Any thoughts on this? (I'm not set on the name PerlAddVar, if that's
> > anyone's concern - but what about the idea of it?)
> 
> you could implement that with a directive handler, that uses
> $r->dir_config->add at request time.

How do you get at $r in a directive handler?

Anyhow, in the end I went for first class configuration directives, so now
with AxKit you can go:

AddStyleMap text/xsl Apache::AxKit::Language::XSLT
AddStyleMap application/x-xpathscript Apache::AxKit::Language::XPathScript

Very cool - I was amazed it worked first time!

-- 
<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

Reply via email to