18 Jan
2011
18 Jan
'11
10:38 a.m.
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... -- Alexis Sukrieh