Forgive my ignorance of Sinatra, but should this not be given parameters such as Rails map.connect ?:
get '/:year/:month/:day/:slug
Parameters should now be available in the params hash:
params = { :year => "foo", :month => "bar", :day => "baz", :slug => "etc" }
source share