【发布时间】:2015-04-17 08:39:23
【问题描述】:
我想做同样的事情:How do I automatically generate static HTML from HAML with Sinatra or Padrino?
这个答案对我来说还远远不够。设置好缓存后,如何将特定的 haml 文件发送到客户端?
例如
get '/foo', :cache => true do
expires 30
haml '/templates/foo.haml'
end
【问题讨论】: