One trend I see in new web apps is cleaner URLs. They noticeably lack "/cgi-bin", script extensions, and often forego query strings to embed simple bits right in the URL.
So instead of: http://del.icio.us/cgi-bin/recipes.cgi?username=markjugg;tag=vegan;tag=recipes We have: http://del.icio.us/markjugg/vegan+recipes Under the covers, the shorter URL may very well be translated to something like the longer version. Tim Berners-Lee also advocates clean URI's like this: http://www.w3.org/Provider/Style/URI I think CGI::Application should have a way to help with this. For reference, the Django framework does this: http://www.djangoproject.com/documentation/url_dispatch/ And Catalyst handles URL dispatch, too: http://search.cpan.org/~agrundma/Catalyst-5.57/lib/Catalyst/Manual/Intro.pod#URL_Path_Handling Django keeps the dispatch table as standalone thing (like our runmodes table in setup() ), while Catalyst uses subroutine attributes to keep the dispatch details for each run mode near it. (like our AutoRunmode plugin). I prefer something like the Django approach, although it seems that either could be implemented as a plugin in our system. We do have CGI::Application::Dispatch already, but it has a smaller scope-- it doesn't currently handle turning URL bits into run mode parameters from what I can tell. Are others interested in this? Do you have favorite reference API for this, or a new one to suggest? Mark --------------------------------------------------------------------- Web Archive: http://www.mail-archive.com/[email protected]/ http://marc.theaimsgroup.com/?l=cgiapp&r=1&w=2 To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
