[Dancer-users] request for feature

Alexis Sukrieh sukria at sukria.net
Tue Jan 18 11:38:49 CET 2011


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


More information about the Dancer-users mailing list