lib/sinatra/assetpack/class_methods.rb in sinatra-assetpack-0.2.8 vs lib/sinatra/assetpack/class_methods.rb in sinatra-assetpack-0.3.0
- old
+ new
@@ -85,10 +85,10 @@
# Dynamic file
not_found unless AssetPack.tilt_formats[format] == fmt
@template_cache.fetch(fn) {
settings.assets.fetch_dynamic_asset(fn) {
- out = render format.to_sym, File.read(fn)
+ out = render format.to_sym, File.read(fn), :filename => fn
out = asset_filter_css(out) if fmt == 'css'
out
}
}
end