On Tue, Jan 18, 2011 at 12:38 PM, Alexis Sukrieh <sukria@sukria.net> wrote:
Le 18/01/2011 07:53, sawyer x a écrit :

Sukria, can you verify whether Sinatra are using regex for routes or
just have a tricky regex to handle route compilation and optional
parameters?

According to the source, Sinatra does the same as we do: building a regexp for every single route:

https://github.com/sinatra/sinatra/blob/master/lib/sinatra/base.rb#L1051

But at first glance I don't see where they handle that conditional token...

Line 1081?