Jay, Trying To Remember...
dumb stuff I should probably forget anyway
Doing something different depending on file extension (MIME type) in Sinatra
March 31, 2010
This looks like a solution:
sinatra-respond_to