[Dancer-users] request for feature

sawyer x xsawyerx at gmail.com
Tue Jan 18 07:53:57 CET 2011


Apparently Sinatra does have some support for optional settings. The
following makes the trailing slash optional:
get '/my/route/?'

I wonder how it's being done. We can try a weird regex to catch these, but
perhaps it should be written as a regex instead in the first place.

Sukria, can you verify whether Sinatra are using regex for routes or just
have a tricky regex to handle route compilation and optional parameters?
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.backup-manager.org/pipermail/dancer-users/attachments/20110118/8ff6a740/attachment.htm>


More information about the Dancer-users mailing list