lib/sinatra/assetpack/class_methods.rb
def add_compressed_routes!
        assets.packages.each do |name, package|
          get package.route_regex do
            mtime, contents = @template_cache.fetch(package.path) {
              [ package.mtime, package.minify ]
            }

            content_type package.type
            last_modified mtime
            contents
          end
        end
      end
# Add routes for the compressed versions
Add routes for the compressed versions
Add routes for the compressed versions
def add_compressed_routes!
        assets.packages.each do |name, package|
          get package.route_regex do
            mtime, contents = @template_cache.fetch(package.path) {
              [ package.mtime, package.minify ]
            }
            content_type package.type
            last_modified mtime
            contents
          end
        end
      end
def add_compressed_routes! assets . packages . each do | name , package | get package . route_regex do mtime , contents = @template_cache . fetch ( package . path ) { [ package . mtime , package . minify ] } content_type package . type last_modified mtime contents end end end
Add routes for the compressed versions
Add routes for the compressed versions