kematzy / sinatra-cache

A Sinatra Extension that makes Page and Fragment Caching easy
MIT License
161 stars 21 forks source link

adding cache_raw to cache data without templates #8

Open archiloque opened 12 years ago

archiloque commented 12 years ago

Usage example:

get /\/json\/(\d+)\.json/ do |id|
  content_type :json
  cache_raw do
    {id}.to_json
  end
end
bogdanRada commented 9 years ago

+1 . Does anyone have an idea if this will be merged into master? Would really be nice! Thanks.

kematzy commented 9 years ago

Bogdan,

I will try to have a look at it over the weekend.

bogdanRada commented 9 years ago

thank you :)