Skip to content
Rack middleware which embeds small images as base64 data-url in css/html files if the browser supports it
Ruby
Find file
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Failed to load latest commit information.
lib/rack
test
LICENSE
Manifest.txt
README.md
Rakefile
rack-embed.gemspec

README.md

Rack::Embed

Rack::Embed embeds small images via the data-url (base64) if the browser supports it. This reduces http traffic.

Installation

gem sources -a http://gemcutter.org
gem install rack-embed

Usage

Add the following line to your rackup file:

use Rack::Embed, :max_size => 1024
Something went wrong with that request. Please try again.