lib/sinatra/assetpack.rb in sinatra-assetpack-0.1.7 vs lib/sinatra/assetpack.rb in sinatra-assetpack-0.2.0
- old
+ new
@@ -33,9 +33,15 @@
re = Hash.new { |h, k| h[k] = Array.new }
formats.each { |tilt, out| re[out] << tilt }
out
end
+ # Clear Tilt::Cache (used for primarily for tests)
+ def self.clear_tilt_cache!(cache, app)
+ cache.clear
+ #app.clear_tilt_cache = false # Maybe it can be an option on app we can enable/disable?
+ end
+
PREFIX = File.dirname(__FILE__)
autoload :ClassMethods, "#{PREFIX}/assetpack/class_methods"
autoload :Options, "#{PREFIX}/assetpack/options"
autoload :Helpers, "#{PREFIX}/assetpack/helpers"