[Bese-devel] (defentry-point "a regular expression"

Vladimir Sekissov svg at surnet.ru
Thu Oct 13 07:45:34 UTC 2005


Good day,

mb> i need to setup some entrypoints which mathes urls defined by a
mb> regular expression like "/catalog/\d+/shipping". i could put this in a
mb> url parameter, but due to non-technical requrimentes i can't, and i
mb> think it makes for a pretty cool (and usefull) extension.
mb> 
mb> the change itself is fairly trivial and requires only a change to the
mb> find-entry-point method. there are two different ways to implement
mb> this:
mb> 
mb> 1) builtin standard ucw feature. this means i'll change the method
mb>    defined on standard-application and ucw will new gain a new
mb>    dependency (cl-ppcre).

As for me I would prefer this way. CL-PPCRE dependency is not an
issue. Handling web-application is mostly handling strings. Handling
strings is mostly handling regular expressions. Handling regular
expressions in Lisp is mostly CL-PPCRE.

mb> 
mb> 2) a custom application (ala the cookie-session-app). this has the
mb>    advantage that users who don't want this feature needn't download
mb>    and bother with cl-ppcre but means that users who do want it may
mb>    not find it since the examples won't mention it.
mb> 
mb> preferences?

Best Regards,
Vladimir Sekissov



More information about the bese-devel mailing list