lib/caboodle/kit.rb in caboodle-0.1.9 vs lib/caboodle/kit.rb in caboodle-0.2.0

- old
+ new

@@ -13,9 +13,13 @@ template :layout do @@template ||= File.open(File.join(File.dirname(__FILE__),"app","views","layout.haml")).read end + before do + response.headers['Cache-Control'] = 'public, max-age=600' + end + class << self def inherited subclass c = caller[0].split(":") f = File.dirname(File.expand_path("#{c[0]}")) \ No newline at end of file