|
|
Sponsor |
RE: Cool URIs don't change: improving C::A's URL dispatch: msg#00049lang.perl.modules.cgi-appplication
On a related note - I'd like to hear of any ideas other than mod_rewrite for getting around the http://del.icio.us/cgi-bin/recipes.cgi?username=markjugg;tag=vegan;tag=recip es style of URLs, which are often ignored by search engines. I tend to publish content to static index pages, but to get to the next list of content entries I dynamically query the db, and Google for one rarely follows the dynamic link. My workaround has been to have a hidden (to the human eye) link on the index page the lists every single piece of content. It works, but it's ugly. Hopefully, if someone has a good idea for Mark's topic, I can twist it to me needs... Dan > -----Original Message----- > From: Mark Stosberg > Sent: Wednesday, 23 November 2005 8:23 a.m. > To: cgiapp@xxxxxxxxxxxxxxxxx > Subject: [cgiapp] Cool URIs don't change: improving C::A's URL dispatch > > 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/cgiapp@xxxxxxxxxxxxxxxxx/ > http://marc.theaimsgroup.com/?l=cgiapp&r=1&w=2 > To unsubscribe, e-mail: cgiapp-unsubscribe@xxxxxxxxxxxxxxxxx > For additional commands, e-mail: cgiapp-help@xxxxxxxxxxxxxxxxx --------------------------------------------------------------------- Web Archive: http://www.mail-archive.com/cgiapp@xxxxxxxxxxxxxxxxx/ http://marc.theaimsgroup.com/?l=cgiapp&r=1&w=2 To unsubscribe, e-mail: cgiapp-unsubscribe@xxxxxxxxxxxxxxxxx For additional commands, e-mail: cgiapp-help@xxxxxxxxxxxxxxxxx
|
|
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| Previous by Date: | Re: Request for Best Practice : Inserting and Updating a field, Mark Stosberg |
|---|---|
| Next by Date: | while debuging : apache error logs, Jeff MacDonald |
| Previous by Thread: | Cool URIs don't change: improving C::A's URL dispatch, Mark Stosberg |
| Next by Thread: | Re: Cool URIs don't change: improving C::A's URL dispatch, Mark Stosberg |
| Indexes: | [Date] [Thread] [Top] [All Lists] |
Free MagazinesCisco NewsReceive a free quarterly e-newsletter with exclusive articles on how Cisco IT uses its own products and solutions to enable the business. subscribe Systems Management News, the newspaper for IT systems administration and data center managers! Each issue of Systems Management News is chock-full of news and analysis to help you understand what's happening in your field. subscribe The Enterprise Newsweekly eWeek is the essential technology information source for builders of e-business. subscribe Oracle Magazine Oracle Magazine contains technology strategy articles, sample code, tips, Oracle and partner news, how to articles for developers and DBAs, and more. Oracle (NASDAQ: ORCL) is the world's largest enterprise software company. subscribe Total Telecom Total Telecom is "The Economist of the communications industry". subscribe |
Home | sitemap
| advertise | OSDir is
an inevitable website.
|