#398 ability to tap into Slash::Apache by plugin

Slash 2.3/2.4
open
nobody
Other (116)
5
2004-07-21
2004-07-21
shane
No

more specifically, Slash::Apache::IndexHandler is what I'd love a
plugin to be able to tap into.

one example of why this is wanted: calendars. my calendar plugin
will render the things to .shtml's if the admin wants. and it'll redirect
to the .shtml under (those) certain conditions.

but if it could tap into the indexhandler, I could do something
similar to this:

if ($uri eq '/authors.pl') {
my $filename = $r->filename;
my $basedir = $constants->{basedir};

if (!$dbon || !$is_user) {
$r->uri('/authors.shtml');
$r->filename("$basedir/authors.shtml");
writeLog('shtml');
return OK;
}
}

it makes more sense to me to do the 'redirect' there inside apache
rather then let all the Slash::Apache processes run then finally have
the perl script run.

Discussion