I want to do essentially the same thing: How do I automatically generate static HTML from HAML with Sinatra or Padrino?
This answer didn't quite go far enough for me. After I have caching setup, how would I send a particular haml file to the client?
E.g.
get '/foo', :cache => true do
expires 30
haml '/templates/foo.haml'
end