On Thu, 4 May 2000, Matt Sergeant wrote:
> How do you get at $r in a directive handler?
other way around, you get at directive handler config from a handler,
which has been passed $r, e.g.:
sub handler {
my $r = shift;
my $cfg = Apache::ModuleConfig->get($r, __PACKAGE__);
$cfg would contain the data stashed by the 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!
:)