Mark Stosberg wrote:
On 2004-09-16, Michael Peters <michael@xxxxxxxxxxxxxxxx> wrote:
Question: What happens if you model is named:
My::CamelCaps
Will it figure out that I mean
"CamelCaps" and not "Camelcaps" ?
Nope. If you can think of a good way for this to happen then I'm all
ears. Maybe there could be another parameter or hook to customize the
ucfirst behaviour that I'm doing.
Also, what about the edge case of having a module name
with an underscore in it?
This also won't work currently. If you think it's worth it then maybe we
can introduce another paramter/hook for this too.
What about supporting a more direct format,
like /My-CamelCaps/
I don't think a dash is a valid option in a module name, so it should
work fine here. This should allow support for any module names.
It seems like it would be possible to also support your current style,
which would continue to work well for most cases.
That actually makes sense. Maybe have some sort of parameter indicating
the separating char. And by default it would be '_'. Maybe something
like this for a httpd.conf to support the above...
CGIAPP_DISPATCH_SEPERATOR -
CGIAPP_DISPATCH_UCFIRST Off
Thanks for the idea Mark.
--
Michael Peters
Developer
Plus Three, LP
---------------------------------------------------------------------
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
|
Try Searching:
servers, voip, java, networking, microsoft ...
|
|
|
|