Re: [Maypole] Wish-list

From: Sebastian Riedel (sri at oook.de)
Date: Mon Sep 27 2004 - 05:24:34 BST


Simon Flack:
>
> Along similar lines, it'd be nice to be able to configure the mapping between
> the URI action and the model action. For example I'd like to be able to map,
> '/brewery/add' to &BeerDB::Brewery::Maypole_add rather than &BeerDB::Brewery::
> add.
>
And maybe path rewriting, many people are bugging me about that.
Something like this maybe:

MyApp->config->rewrite(
    '/checkout/' => '/cart/checkout/',
    '/lalala/(.*)' => '/view/beer/$1',
    '/beer/add/' => '/beer/Maypole_add/'
);

Yes, there is mod_rewrite, but a Maypole solution could be much
simpler...(and slower)

A simple rewrite_path() method called from parse_location() would be
enough for me to make Maypole::Rewrite.

sebastian

_______________________________________________
maypole mailing list
maypole at lists.netthink.co.uk
http://lists.netthink.co.uk/listinfo/maypole



This archive was generated by hypermail 2.1.3 : Thu Feb 24 2005 - 22:25:56 GMT