[Maypole] link macro

Carl Hayter hayter@usc.edu
Tue, 20 Jul 2004 12:49:36 -0700


--Os3yV+a5rIGRl17f
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

On Mon, Jul 19, 2004 at 07:34:35PM +0100, Simon Cozens wrote:
> Jesse Sheidlower:
> > Where does this stripping happen?=20
>=20
> Later. :)
>=20
> Just as "base" is passed to the template. So the Apache::MVC stuff that r=
elies
> on the trailing slash being there still works.

is the trailing slash on "base" a mod_perl thing?  what i mean is given:

http://example.com/app
http://example.com/app/
http://example.com/app/frontpage
http://example.com/app/table/list

it seems like the first is the obvious thing to put in "base".  i tweaked
parse_location

-    $self->{path} =3D~ s/^($loc)?\///;
+    $self->{path} =3D~ s/^($loc\/*)?//;

and templates to insert a slash between 'base' and 'table' where needed.

is it a mod_perl thing to need the slash?  i've only been using
CGI::Maypole and FCGI::Maypole.  is there some other reason behind
the slash that i'm missing? (i'm no apache wiz)

----
Carl

--Os3yV+a5rIGRl17f
Content-Type: application/pgp-signature
Content-Disposition: inline

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.2 (SunOS)

iD8DBQFA/XdQjSUgp1gR7V8RAohJAKCDf15zkJ4tx3mGEePdFaNeEZgJ2wCfWrl6
u7svkuQOqPh/n6XUPFM5mJo=
=9Qlg
-----END PGP SIGNATURE-----

--Os3yV+a5rIGRl17f--