To return a file using sinatra, I had been using this:
get '/:name' do
x = File.open('c:/mywebsite/' + params[:name],'r')
end
where the incoming url is "http://localserver:4567/myfile.html.
It works, but it occurs to me there must be a better way, yet I can't find the preferred mechanism on the sinatra site.